twilight_model/channel/stage_instance/
privacy_level.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use serde_repr::{Deserialize_repr, Serialize_repr};

#[derive(Clone, Copy, Debug, Deserialize_repr, Eq, Hash, PartialEq, Serialize_repr)]
#[non_exhaustive]
#[repr(u8)]
pub enum PrivacyLevel {
    GuildOnly = 2,
}

#[cfg(test)]
mod tests {
    use super::PrivacyLevel;
    use serde_test::Token;

    #[test]
    fn variants() {
        serde_test::assert_tokens(&PrivacyLevel::GuildOnly, &[Token::U8(2)]);
    }
}