#[non_exhaustive]pub struct ModifyCurrentUser {
pub username: Option<CompactString>,
pub avatar: Patch<ImageData>,
pub banner: Patch<ImageData>,
}Expand description
The body of Modify Current User.
discord.js counterpart: ClientUser#edit.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.username: Option<CompactString>The username.
avatar: Patch<ImageData>The avatar.
The profile banner.
Trait Implementations§
Source§impl Clone for ModifyCurrentUser
impl Clone for ModifyCurrentUser
Source§impl Debug for ModifyCurrentUser
impl Debug for ModifyCurrentUser
Source§impl Default for ModifyCurrentUser
impl Default for ModifyCurrentUser
impl Eq for ModifyCurrentUser
Source§impl Hash for ModifyCurrentUser
impl Hash for ModifyCurrentUser
Source§impl PartialEq for ModifyCurrentUser
impl PartialEq for ModifyCurrentUser
Source§impl Serialize for ModifyCurrentUser
impl Serialize for ModifyCurrentUser
impl StructuralPartialEq for ModifyCurrentUser
Auto Trait Implementations§
impl !Freeze for ModifyCurrentUser
impl Forget for ModifyCurrentUser
impl Move for ModifyCurrentUser
impl RefUnwindSafe for ModifyCurrentUser
impl Send for ModifyCurrentUser
impl Sync for ModifyCurrentUser
impl Unpin for ModifyCurrentUser
impl UnsafeUnpin for ModifyCurrentUser
impl UnwindSafe for ModifyCurrentUser
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