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

source§

fn clone(&self) -> GuildScheduledEvent

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GuildScheduledEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for GuildScheduledEvent

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Hash for GuildScheduledEvent

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq<GuildScheduledEvent> for GuildScheduledEvent

source§

fn eq(&self, other: &GuildScheduledEvent) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for GuildScheduledEvent

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for GuildScheduledEvent

source§

impl StructuralEq for GuildScheduledEvent

source§

impl StructuralPartialEq for GuildScheduledEvent

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,