Struct serenity::builder::EditScheduledEvent
source · [−]builder
only.Tuple Fields
0: HashMap<&'static str, Value>
Implementations
sourceimpl EditScheduledEvent
impl EditScheduledEvent
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. If the kind
of the event is changed from
External
to either StageInstance
or Voice
, then this field is also required.
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.
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.
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.
If changing to External
, then end_time
and location
must also be set.
Otherwise, if changing to either StageInstance
or Voice
, then channel_id
is
also required to be set.
sourcepub fn status(&mut self, status: ScheduledEventStatus) -> &mut Self
pub fn status(&mut self, status: ScheduledEventStatus) -> &mut Self
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 EditScheduledEvent
impl Clone for EditScheduledEvent
sourcefn clone(&self) -> EditScheduledEvent
fn clone(&self) -> EditScheduledEvent
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 EditScheduledEvent
impl Debug for EditScheduledEvent
sourceimpl Default for EditScheduledEvent
impl Default for EditScheduledEvent
sourcefn default() -> EditScheduledEvent
fn default() -> EditScheduledEvent
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for EditScheduledEvent
impl Send for EditScheduledEvent
impl Sync for EditScheduledEvent
impl Unpin for EditScheduledEvent
impl UnwindSafe for EditScheduledEvent
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>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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