pub struct UserPatch {
pub id: Option<UserId>,
pub username: Option<Username>,
pub avatar: Option<Attachment>,
pub relations: Option<Vec<Relationship>>,
pub badges: Option<Badges>,
pub status: Option<Status>,
pub relationship: Option<RelationshipStatus>,
pub online: Option<bool>,
pub flags: Option<UserFlags>,
pub bot: Option<BotInformation>,
pub profile_content: Option<String>,
pub profile_background: Option<Attachment>,
}Expand description
An user struct where all the fields are optional, and can be
used to update an User with the [PartialUser::patch]
function.
Fields§
§id: Option<UserId>§username: Option<Username>§avatar: Option<Attachment>§relations: Option<Vec<Relationship>>§badges: Option<Badges>§status: Option<Status>§relationship: Option<RelationshipStatus>§online: Option<bool>§flags: Option<UserFlags>§bot: Option<BotInformation>§profile_content: Option<String>§profile_background: Option<Attachment>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserPatch
impl<'de> Deserialize<'de> for UserPatch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for UserPatch
impl Ord for UserPatch
Source§impl PartialOrd for UserPatch
impl PartialOrd for UserPatch
impl Eq for UserPatch
impl StructuralPartialEq for UserPatch
Auto Trait Implementations§
impl Freeze for UserPatch
impl RefUnwindSafe for UserPatch
impl Send for UserPatch
impl Sync for UserPatch
impl Unpin for UserPatch
impl UnwindSafe for UserPatch
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