Struct robespierre_models::users::UserPatch [−][src]
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
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
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for UserPatch
impl UnwindSafe for UserPatch
Blanket Implementations
Mutably borrows from an owned value. Read more