#[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
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
sourceimpl Clone for ScheduledEvent
impl Clone for ScheduledEvent
sourcefn clone(&self) -> ScheduledEvent
fn clone(&self) -> ScheduledEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ScheduledEvent
impl Debug for ScheduledEvent
sourceimpl<'de> Deserialize<'de> for ScheduledEvent
impl<'de> Deserialize<'de> for ScheduledEvent
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for ScheduledEvent
impl Serialize for ScheduledEvent
Auto Trait Implementations
impl RefUnwindSafe for ScheduledEvent
impl Send for ScheduledEvent
impl Sync for ScheduledEvent
impl Unpin for ScheduledEvent
impl UnwindSafe for ScheduledEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more