#[non_exhaustive]
pub struct ScheduledEvent {
Show 14 fields pub id: ScheduledEventId, pub guild_id: GuildId, pub channel_id: Option<ChannelId>, pub creator_id: Option<UserId>, pub name: String, pub description: Option<String>, pub start_time: Timestamp, pub end_time: Option<Timestamp>, pub status: ScheduledEventStatus, pub creator: Option<User>, pub kind: ScheduledEventType, pub metadata: Option<ScheduledEventMetadata>, pub user_count: Option<u64>, pub image: Option<String>,
}
Expand description

Information about a guild scheduled event.

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: ScheduledEventId

The Id of the scheduled event.

guild_id: GuildId

The Id of the guild that the event belongs to.

channel_id: Option<ChannelId>

The Id of the channel that the event belongs to, if any.

creator_id: Option<UserId>

The Id of the User that created the scheduled event.

Only None for events created before October 25th, 2021.

name: String

The name of the scheduled event.

description: Option<String>

The description of the scheduled event, if any.

start_time: Timestamp

The event’s starting time.

end_time: Option<Timestamp>

The event’s ending time; optional.

status: ScheduledEventStatus

The event’s status; either Scheduled, Active, Completed, or Canceled.

creator: Option<User>

The User that created the event.

Only None for events created before October 25th, 2021.

kind: ScheduledEventType

The type of the event, indicating if it will take place in a Stage Instance, a Voice Channel, or at some External location.

metadata: Option<ScheduledEventMetadata>

Optional event location, only required for External events.

user_count: Option<u64>

Number of users interested in the event.

Only populated if with_user_count is set to true provided when calling GuildId::scheduled_event or GuildId::scheduled_events.

image: Option<String>

The hash of the event’s cover image, if present.

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

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.

Should always be Self

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