twilight_model/channel/stage_instance/
privacy_level.rs

1use serde_repr::{Deserialize_repr, Serialize_repr};
2
3#[derive(Clone, Copy, Debug, Deserialize_repr, Eq, Hash, PartialEq, Serialize_repr)]
4#[non_exhaustive]
5#[repr(u8)]
6pub enum PrivacyLevel {
7    GuildOnly = 2,
8}
9
10#[cfg(test)]
11mod tests {
12    use super::PrivacyLevel;
13    use serde_test::Token;
14
15    #[test]
16    fn variants() {
17        serde_test::assert_tokens(&PrivacyLevel::GuildOnly, &[Token::U8(2)]);
18    }
19}