azalea_protocol/common/
server_links.rs

1use azalea_buf::AzBuf;
2use azalea_chat::FormattedText;
3
4#[derive(Clone, Debug, AzBuf)]
5pub struct ServerLinkEntry {
6    pub kind: ServerLinkKind,
7    pub link: String,
8}
9
10#[derive(Clone, Debug, AzBuf)]
11pub enum ServerLinkKind {
12    Component(FormattedText),
13    Known(KnownLinkKind),
14}
15
16#[derive(Clone, Copy, Debug, AzBuf)]
17pub enum KnownLinkKind {
18    BugReport,
19    CommunityGuidelines,
20    Support,
21    Status,
22    Feedback,
23    Community,
24    Website,
25    Forums,
26    News,
27    Announcements,
28}