pub struct CreateGuildStageInstanceScheduledEvent<'a>(/* private fields */);Expand description
Create a stage instance scheduled event in a guild.
Implementations§
Source§impl<'a> CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> CreateGuildStageInstanceScheduledEvent<'a>
Sourcepub fn description(self, description: &'a str) -> Self
pub fn description(self, description: &'a str) -> Self
Set the description of the event.
Must be between 1 and 1000 characters in length.
§Errors
Returns an error of type ScheduledEventDescription if the
description is invalid.
Sourcepub fn image(self, image: &'a str) -> Self
pub fn image(self, image: &'a str) -> Self
Set the cover image of the event.
This must be a Data URI, in the form of
data:image/{type};base64,{data} where {type} is the image MIME type
and {data} is the base64-encoded image. See Discord Docs/Image Data.
Sourcepub fn recurrence_rule(self, recurrence_rule: &'a RecurrenceRule) -> Self
pub fn recurrence_rule(self, recurrence_rule: &'a RecurrenceRule) -> Self
Set the definition for how often this event should recur.
This is not a required field.
Sourcepub fn scheduled_end_time(self, scheduled_end_time: &'a Timestamp) -> Self
pub fn scheduled_end_time(self, scheduled_end_time: &'a Timestamp) -> Self
Set the scheduled end time of the event.
This is not a required field for stage instance events.
Trait Implementations§
Source§impl<'a> AuditLogReason<'a> for CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> AuditLogReason<'a> for CreateGuildStageInstanceScheduledEvent<'a>
Source§impl IntoFuture for CreateGuildStageInstanceScheduledEvent<'_>
impl IntoFuture for CreateGuildStageInstanceScheduledEvent<'_>
Source§type Output = Result<Response<GuildScheduledEvent>, Error>
type Output = Result<Response<GuildScheduledEvent>, Error>
The output that the future will produce on completion.
Source§type IntoFuture = ResponseFuture<GuildScheduledEvent>
type IntoFuture = ResponseFuture<GuildScheduledEvent>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> !UnwindSafe for CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> Forget for CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> Freeze for CreateGuildStageInstanceScheduledEvent<'a>where
PhantomData<fn(GuildMarker) -> GuildMarker>: Freeze,
NonZero<u64>: Freeze,
&'a Client: Freeze,
PhantomData<fn(ChannelMarker) -> ChannelMarker>: Freeze,
&'a str: Freeze,
&'a RecurrenceRule: Freeze,
&'a Timestamp: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
NonZero<i32>: Freeze,
&'static str: Freeze,
impl<'a> Move for CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> Send for CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> Sync for CreateGuildStageInstanceScheduledEvent<'a>where
NonZero<u64>: Sync,
RawVecInner: Sync,
BoxRaw<[Pos]>: Sync,
Bytes: Sync,
Arc<Config>: Sync,
Arc<Resolver<GenericConnector<TokioRuntimeProvider>>>: Sync,
Arc<ClientConfig>: Sync,
Arc<dyn ResolveServerName + Send + Sync>: Sync,
Arc<dyn Executor<Pin<Box<dyn Future<Output = ()> + Send>>> + Send + Sync>: Sync,
Arc<dyn Timer + Send + Sync>: Sync,
Arc<Mutex<PoolInner<PoolClient<Full<Bytes>>, (Scheme, Authority)>>>: Sync,
BoxRaw<str>: Sync,
Arc<Chan<(Message, Option<Box<dyn FnOnce(Option<Bucket>) -> bool + Send>>), Semaphore>>: Sync,
Arc<Atomic<bool>>: Sync,
NonZero<i32>: Sync,
impl<'a> Unpin for CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> UnsafeUnpin for CreateGuildStageInstanceScheduledEvent<'a>where
PhantomData<fn(GuildMarker) -> GuildMarker>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
&'a Client: UnsafeUnpin,
PhantomData<fn(ChannelMarker) -> ChannelMarker>: UnsafeUnpin,
&'a str: UnsafeUnpin,
&'a RecurrenceRule: UnsafeUnpin,
&'a Timestamp: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
&'static str: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more