pub struct CreateGuildExternalScheduledEvent<'a>(/* private fields */);
Expand description
Create an external scheduled event in a guild.
Implementations§
source§impl<'a> CreateGuildExternalScheduledEvent<'a>
impl<'a> CreateGuildExternalScheduledEvent<'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.
Trait Implementations§
source§impl<'a> AuditLogReason<'a> for CreateGuildExternalScheduledEvent<'a>
impl<'a> AuditLogReason<'a> for CreateGuildExternalScheduledEvent<'a>
source§impl IntoFuture for CreateGuildExternalScheduledEvent<'_>
impl IntoFuture for CreateGuildExternalScheduledEvent<'_>
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
source§impl TryIntoRequest for CreateGuildExternalScheduledEvent<'_>
impl TryIntoRequest for CreateGuildExternalScheduledEvent<'_>
Auto Trait Implementations§
impl<'a> Freeze for CreateGuildExternalScheduledEvent<'a>
impl<'a> !RefUnwindSafe for CreateGuildExternalScheduledEvent<'a>
impl<'a> Send for CreateGuildExternalScheduledEvent<'a>
impl<'a> Sync for CreateGuildExternalScheduledEvent<'a>
impl<'a> Unpin for CreateGuildExternalScheduledEvent<'a>
impl<'a> !UnwindSafe for CreateGuildExternalScheduledEvent<'a>
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