pub struct CreateGuildStageInstanceScheduledEvent<'a>(_);
Expand description
Create a stage instance scheduled event in a guild.
Implementations
sourceimpl<'a> CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> CreateGuildStageInstanceScheduledEvent<'a>
sourcepub fn description(self, description: &'a str) -> Result<Self, ValidationError>
pub fn description(self, description: &'a str) -> Result<Self, ValidationError>
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 const fn image(self, image: &'a str) -> Self
pub const 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 const fn scheduled_end_time(self, scheduled_end_time: &'a Timestamp) -> Self
pub const 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.
sourcepub fn exec(self) -> ResponseFuture<GuildScheduledEvent>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<GuildScheduledEvent>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
Execute the request, returning a future resolving to a Response
.
Trait Implementations
sourceimpl<'a> AuditLogReason<'a> for CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> AuditLogReason<'a> for CreateGuildStageInstanceScheduledEvent<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> Send for CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> Sync for CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> Unpin for CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> !UnwindSafe for CreateGuildStageInstanceScheduledEvent<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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