pub struct CreateGuildFromTemplate<'a> { /* private fields */ }
Expand description
Implementations§
source§impl<'a> CreateGuildFromTemplate<'a>
impl<'a> CreateGuildFromTemplate<'a>
sourcepub fn icon(self, icon: &'a str) -> Self
pub fn icon(self, icon: &'a str) -> Self
Set the icon.
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 IntoFuture for CreateGuildFromTemplate<'_>
impl IntoFuture for CreateGuildFromTemplate<'_>
source§type Output = Result<Response<Guild>, Error>
type Output = Result<Response<Guild>, Error>
The output that the future will produce on completion.
source§type IntoFuture = ResponseFuture<Guild>
type IntoFuture = ResponseFuture<Guild>
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 CreateGuildFromTemplate<'_>
impl TryIntoRequest for CreateGuildFromTemplate<'_>
Auto Trait Implementations§
impl<'a> Freeze for CreateGuildFromTemplate<'a>
impl<'a> !RefUnwindSafe for CreateGuildFromTemplate<'a>
impl<'a> Send for CreateGuildFromTemplate<'a>
impl<'a> Sync for CreateGuildFromTemplate<'a>
impl<'a> Unpin for CreateGuildFromTemplate<'a>
impl<'a> !UnwindSafe for CreateGuildFromTemplate<'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