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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more