diff options
| author | n1c00o <git.n1c00o@gmail.com> | 2021-10-02 22:44:26 +0200 |
|---|---|---|
| committer | n1c00o <git.n1c00o@gmail.com> | 2021-10-02 22:44:26 +0200 |
| commit | 13955d7089a1f6a7a5c711533a965d9d57eed2d8 (patch) | |
| tree | 6487558aae456d82b3e0d4af39c596ef91e37b6c /common/rust/src | |
| parent | 69cc20b406a77bebf7ccbd61336e5d149848af08 (diff) | |
Add Stage Instance structures
A Stage Instance holds data about a live stage.
Diffstat (limited to 'common/rust/src')
| -rw-r--r-- | common/rust/src/discord_models/stage_instance.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/common/rust/src/discord_models/stage_instance.rs b/common/rust/src/discord_models/stage_instance.rs new file mode 100644 index 0000000..1eee1c2 --- /dev/null +++ b/common/rust/src/discord_models/stage_instance.rs @@ -0,0 +1,19 @@ +use serde::{Deserialize, Serialize}; +use serde_repr::{Deserialize_repr, Serialize_repr}; + +#[derive(Debug, Clone, Deserialize_repr, Serialize_repr)] +#[repr(u8)] +pub enum PrivacyLevel { + Public = 1, + GuildOnly = 2, +} + +#[derive(Debug, Clone, Deserialize, Serialize)] +pub struct StageInstance { + pub id: String, + pub guild_id: String, + pub channel_id: String, + pub topic: String, + pub privacy_level: PrivacyLevel, + pub discoverable_disabled: bool, +} |
