aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/common/server_links.rs
blob: d65d7a89f477fe3b3d3613fc3b886353fe6e5634 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use azalea_buf::AzBuf;
use azalea_chat::FormattedText;

#[derive(AzBuf, Clone, Debug, PartialEq)]
pub struct ServerLinkEntry {
    pub kind: ServerLinkKind,
    pub link: String,
}

#[derive(AzBuf, Clone, Debug, PartialEq)]
pub enum ServerLinkKind {
    Component(FormattedText),
    Known(KnownLinkKind),
}

#[derive(AzBuf, Clone, Copy, Debug, PartialEq)]
pub enum KnownLinkKind {
    BugReport,
    CommunityGuidelines,
    Support,
    Status,
    Feedback,
    Community,
    Website,
    Forums,
    News,
    Announcements,
}