pub struct GuildScheduledEvent {Show 16 fields
pub channel_id: Option<Id<ChannelMarker>>,
pub creator: Option<User>,
pub creator_id: Option<Id<UserMarker>>,
pub description: Option<String>,
pub entity_id: Option<Id<ScheduledEventEntityMarker>>,
pub entity_metadata: Option<EntityMetadata>,
pub entity_type: EntityType,
pub guild_id: Id<GuildMarker>,
pub id: Id<ScheduledEventMarker>,
pub image: Option<ImageHash>,
pub name: String,
pub privacy_level: PrivacyLevel,
pub scheduled_end_time: Option<Timestamp>,
pub scheduled_start_time: Timestamp,
pub status: Status,
pub user_count: Option<u64>,
}
Expand description
Representation of a scheduled event.
For events created before October 25th, 2021, creator
and creator_id
will be None
.
Fields§
§channel_id: Option<Id<ChannelMarker>>
ID of the stage or voice channel if there is one.
Present on events of EntityType::StageInstance
and
EntityType::Voice
.
creator: Option<User>
User object of the event’s creator.
Only present on events created after October 25th, 2021.
creator_id: Option<Id<UserMarker>>
ID of the event’s creator.
Only present on events created after October 25th, 2021.
description: Option<String>
Description of the event.
entity_id: Option<Id<ScheduledEventEntityMarker>>
ID of the event’s entity.
entity_metadata: Option<EntityMetadata>
Metadata of an entity, if it exists.
Currently, only present on events of EntityType::External
.
entity_type: EntityType
Type of entity associated with the event.
guild_id: Id<GuildMarker>
ID of the guild the event takes place in.
id: Id<ScheduledEventMarker>
ID of the event.
image: Option<ImageHash>
Hash of the event’s cover image, if it has one.
name: String
Name of the event.
privacy_level: PrivacyLevel
Privacy level of the event.
scheduled_end_time: Option<Timestamp>
Scheduled end time of the event.
Required on events of type EntityType::External
. It also may be
present in other event types.
scheduled_start_time: Timestamp
Scheduled start time of the event.
status: Status
Status of the event.
user_count: Option<u64>
Number of users subscribed to the event.
Trait Implementations§
source§impl Clone for GuildScheduledEvent
impl Clone for GuildScheduledEvent
source§fn clone(&self) -> GuildScheduledEvent
fn clone(&self) -> GuildScheduledEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GuildScheduledEvent
impl Debug for GuildScheduledEvent
source§impl<'de> Deserialize<'de> for GuildScheduledEvent
impl<'de> Deserialize<'de> for GuildScheduledEvent
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>,
source§impl Hash for GuildScheduledEvent
impl Hash for GuildScheduledEvent
source§impl PartialEq for GuildScheduledEvent
impl PartialEq for GuildScheduledEvent
source§impl Serialize for GuildScheduledEvent
impl Serialize for GuildScheduledEvent
impl Eq for GuildScheduledEvent
impl StructuralPartialEq for GuildScheduledEvent
Auto Trait Implementations§
impl Freeze for GuildScheduledEvent
impl RefUnwindSafe for GuildScheduledEvent
impl Send for GuildScheduledEvent
impl Sync for GuildScheduledEvent
impl Unpin for GuildScheduledEvent
impl UnwindSafe for GuildScheduledEvent
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)