pub struct UpdateCurrentUser<'a> { /* private fields */ }
Expand description
Update the current user.
All parameters are optional. If the username is changed, it may cause the discriminator to be randomized.
Implementations§
source§impl<'a> UpdateCurrentUser<'a>
impl<'a> UpdateCurrentUser<'a>
sourcepub fn avatar(self, avatar: Option<&'a str>) -> Self
pub fn avatar(self, avatar: Option<&'a str>) -> Self
Set the user’s avatar.
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.
Set the user’s banner.
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 UpdateCurrentUser<'a>
impl<'a> AuditLogReason<'a> for UpdateCurrentUser<'a>
source§impl IntoFuture for UpdateCurrentUser<'_>
impl IntoFuture for UpdateCurrentUser<'_>
source§type Output = Result<Response<User>, Error>
type Output = Result<Response<User>, Error>
The output that the future will produce on completion.
source§type IntoFuture = ResponseFuture<User>
type IntoFuture = ResponseFuture<User>
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 UpdateCurrentUser<'_>
impl TryIntoRequest for UpdateCurrentUser<'_>
Auto Trait Implementations§
impl<'a> Freeze for UpdateCurrentUser<'a>
impl<'a> !RefUnwindSafe for UpdateCurrentUser<'a>
impl<'a> Send for UpdateCurrentUser<'a>
impl<'a> Sync for UpdateCurrentUser<'a>
impl<'a> Unpin for UpdateCurrentUser<'a>
impl<'a> !UnwindSafe for UpdateCurrentUser<'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