#[non_exhaustive]pub struct StageInstance {
pub id: StageInstanceId,
pub guild_id: GuildId,
pub channel_id: ChannelId,
pub topic: CompactString,
pub privacy_level: PrivacyLevel,
pub discoverable_disabled: bool,
pub guild_scheduled_event_id: Option<ScheduledEventId>,
}Expand description
A stage instance: a stage channel that is currently live.
discord.js counterpart: StageInstance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StageInstanceIdThe stage instance’s ID.
guild_id: GuildIdThe guild of the stage channel.
channel_id: ChannelIdThe stage channel.
topic: CompactStringThe topic (1-120 characters).
privacy_level: PrivacyLevelWho can see the stage instance.
discoverable_disabled: boolWhether Stage Discovery is disabled. Deprecated by Discord.
guild_scheduled_event_id: Option<ScheduledEventId>The scheduled event this stage instance belongs to.
Trait Implementations§
Source§impl Clone for StageInstance
impl Clone for StageInstance
Source§impl Debug for StageInstance
impl Debug for StageInstance
Source§impl<'de> Deserialize<'de> for StageInstance
impl<'de> Deserialize<'de> for StageInstance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StageInstance
Source§impl From<StageInstanceCreate> for StageInstance
impl From<StageInstanceCreate> for StageInstance
Source§fn from(event: StageInstanceCreate) -> Self
fn from(event: StageInstanceCreate) -> Self
Converts to this type from the input type.
Source§impl From<StageInstanceDelete> for StageInstance
impl From<StageInstanceDelete> for StageInstance
Source§fn from(event: StageInstanceDelete) -> Self
fn from(event: StageInstanceDelete) -> Self
Converts to this type from the input type.
Source§impl From<StageInstanceUpdate> for StageInstance
impl From<StageInstanceUpdate> for StageInstance
Source§fn from(event: StageInstanceUpdate) -> Self
fn from(event: StageInstanceUpdate) -> Self
Converts to this type from the input type.
Source§impl Hash for StageInstance
impl Hash for StageInstance
Source§impl PartialEq for StageInstance
impl PartialEq for StageInstance
Source§impl Serialize for StageInstance
impl Serialize for StageInstance
impl StructuralPartialEq for StageInstance
Auto Trait Implementations§
impl Freeze for StageInstance
impl RefUnwindSafe for StageInstance
impl Send for StageInstance
impl Sync for StageInstance
impl Unpin for StageInstance
impl UnsafeUnpin for StageInstance
impl UnwindSafe for StageInstance
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more