Struct robespierre_models::user::PartialUser [−][src]
pub struct PartialUser {
pub id: Option<UserId>,
pub username: Option<String>,
pub avatar: Option<Attachment>,
pub relations: Option<Vec<Relationship>>,
pub badges: Option<u32>,
pub status: Option<Status>,
pub relationship: Option<RelationshipStatus>,
pub online: Option<bool>,
pub flags: Option<UserFlags>,
pub bot: Option<BotInfo>,
}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<String>avatar: Option<Attachment>relations: Option<Vec<Relationship>>badges: Option<u32>status: Option<Status>relationship: Option<RelationshipStatus>online: Option<bool>flags: Option<UserFlags>bot: Option<BotInfo>Implementations
Treats the PartialUser as a list of modifications
that have to be applied to the given user, and applies
them.
Trait Implementations
Returns the “default value” for a type. Read more
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 tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
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 PartialUser
impl Send for PartialUser
impl Sync for PartialUser
impl Unpin for PartialUser
impl UnwindSafe for PartialUser
Blanket Implementations
Mutably borrows from an owned value. Read more