#[non_exhaustive]pub struct UserEditPatch {
pub status: Option<Status>,
pub profile: Option<UserProfileDataPatch>,
pub avatar: Option<AttachmentId>,
pub remove: Option<UserField>,
}Expand description
A patch to an user.
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.status: Option<Status>§profile: Option<UserProfileDataPatch>§avatar: Option<AttachmentId>§remove: Option<UserField>Trait Implementations§
Source§impl Clone for UserEditPatch
impl Clone for UserEditPatch
Source§fn clone(&self) -> UserEditPatch
fn clone(&self) -> UserEditPatch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserEditPatch
impl Debug for UserEditPatch
Source§impl Default for UserEditPatch
impl Default for UserEditPatch
Source§fn default() -> UserEditPatch
fn default() -> UserEditPatch
Returns the “default value” for a type. Read more
Source§impl Hash for UserEditPatch
impl Hash for UserEditPatch
Source§impl Ord for UserEditPatch
impl Ord for UserEditPatch
Source§fn cmp(&self, other: &UserEditPatch) -> Ordering
fn cmp(&self, other: &UserEditPatch) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UserEditPatch
impl PartialEq for UserEditPatch
Source§impl PartialOrd for UserEditPatch
impl PartialOrd for UserEditPatch
Source§impl Serialize for UserEditPatch
impl Serialize for UserEditPatch
impl Eq for UserEditPatch
impl StructuralPartialEq for UserEditPatch
Auto Trait Implementations§
impl Freeze for UserEditPatch
impl RefUnwindSafe for UserEditPatch
impl Send for UserEditPatch
impl Sync for UserEditPatch
impl Unpin for UserEditPatch
impl UnwindSafe for UserEditPatch
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