Struct serenity::builder::CreateScheduledEvent
source · [−]builder
only.Tuple Fields
0: HashMap<&'static str, Value>
Implementations
sourceimpl CreateScheduledEvent
impl CreateScheduledEvent
sourcepub fn channel_id<C: Into<ChannelId>>(&mut self, channel_id: C) -> &mut Self
pub fn channel_id<C: Into<ChannelId>>(&mut self, channel_id: C) -> &mut Self
Sets the channel id of the scheduled event. Required if the kind
of the event is
StageInstance
or Voice
.
sourcepub fn name<S: ToString>(&mut self, name: S) -> &mut Self
pub fn name<S: ToString>(&mut self, name: S) -> &mut Self
Sets the name of the scheduled event. Required to be set for event creation.
sourcepub fn description<S: ToString>(&mut self, description: S) -> &mut Self
pub fn description<S: ToString>(&mut self, description: S) -> &mut Self
Sets the description of the scheduled event.
sourcepub fn start_time<T: Into<Timestamp>>(&mut self, timestamp: T) -> &mut Self
pub fn start_time<T: Into<Timestamp>>(&mut self, timestamp: T) -> &mut Self
Sets the start time of the scheduled event. Required to be set for event creation.
sourcepub fn kind(&mut self, kind: ScheduledEventType) -> &mut Self
pub fn kind(&mut self, kind: ScheduledEventType) -> &mut Self
Sets the entity type of the scheduled event. Required to be set for event creation.
sourcepub async fn image<'a>(
&mut self,
http: impl AsRef<Http>,
image: impl Into<AttachmentType<'a>>
) -> Result<&mut Self>
Available on crate feature model
only.
pub async fn image<'a>(
&mut self,
http: impl AsRef<Http>,
image: impl Into<AttachmentType<'a>>
) -> Result<&mut Self>
model
only.Sets the cover image for the scheduled event.
Errors
May error if the icon is a URL and the HTTP request fails, or if the image is a file on a path that doesn’t exist.
Trait Implementations
sourceimpl Clone for CreateScheduledEvent
impl Clone for CreateScheduledEvent
sourcefn clone(&self) -> CreateScheduledEvent
fn clone(&self) -> CreateScheduledEvent
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 CreateScheduledEvent
impl Debug for CreateScheduledEvent
sourceimpl Default for CreateScheduledEvent
impl Default for CreateScheduledEvent
Auto Trait Implementations
impl RefUnwindSafe for CreateScheduledEvent
impl Send for CreateScheduledEvent
impl Sync for CreateScheduledEvent
impl Unpin for CreateScheduledEvent
impl UnwindSafe for CreateScheduledEvent
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