pub struct ScheduledEvent<'a> {Show 16 fields
pub id: Snowflake,
pub guild_id: Snowflake,
pub channel_id: Option<Snowflake>,
pub creator_id: Option<Snowflake>,
pub name: TitanString<'a>,
pub description: Option<TitanString<'a>>,
pub scheduled_start_time: TitanString<'a>,
pub scheduled_end_time: Option<TitanString<'a>>,
pub privacy_level: ScheduledEventPrivacyLevel,
pub status: ScheduledEventStatus,
pub entity_type: ScheduledEventEntityType,
pub entity_id: Option<Snowflake>,
pub entity_metadata: Option<ScheduledEventEntityMetadata<'a>>,
pub creator: Option<User<'a>>,
pub user_count: Option<u32>,
pub image: Option<TitanString<'a>>,
}Expand description
A scheduled event in a guild.
Fields§
§id: SnowflakeThe ID of the scheduled event.
guild_id: SnowflakeThe guild ID which the scheduled event belongs to.
channel_id: Option<Snowflake>The channel ID in which the event will be hosted (if applicable).
creator_id: Option<Snowflake>The ID of the user that created the scheduled event.
name: TitanString<'a>The name of the scheduled event (1-100 characters).
description: Option<TitanString<'a>>The description of the scheduled event (1-1000 characters).
scheduled_start_time: TitanString<'a>The time the scheduled event will start (ISO8601 timestamp).
scheduled_end_time: Option<TitanString<'a>>The time the scheduled event will end (ISO8601 timestamp).
privacy_level: ScheduledEventPrivacyLevelThe privacy level of the scheduled event.
status: ScheduledEventStatusThe status of the scheduled event.
entity_type: ScheduledEventEntityTypeThe type of the scheduled event.
entity_id: Option<Snowflake>The ID of an entity associated with a guild scheduled event.
entity_metadata: Option<ScheduledEventEntityMetadata<'a>>Additional metadata for the guild scheduled event.
creator: Option<User<'a>>The user that created the scheduled event.
user_count: Option<u32>The number of users subscribed to the scheduled event.
image: Option<TitanString<'a>>The cover image hash of the scheduled event.
Trait Implementations§
Source§impl<'a> Clone for ScheduledEvent<'a>
impl<'a> Clone for ScheduledEvent<'a>
Source§fn clone(&self) -> ScheduledEvent<'a>
fn clone(&self) -> ScheduledEvent<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more