Struct rive_models::user::User
source · pub struct User {
pub id: String,
pub username: String,
pub avatar: Option<Attachment>,
pub relations: Option<Vec<Relationship>>,
pub badges: Option<i32>,
pub status: Option<UserStatus>,
pub profile: Option<UserProfile>,
pub flags: Option<UserFlags>,
pub privileged: bool,
pub bot: Option<BotInformation>,
pub relationship: Option<RelationshipStatus>,
pub online: Option<bool>,
}Expand description
Representiation of a User on Revolt.
Fields§
§id: StringUnique Id
username: StringUsername
avatar: Option<Attachment>Avatar attachment
relations: Option<Vec<Relationship>>Relationships with other users
badges: Option<i32>Bitfield of user badges
status: Option<UserStatus>User’s current status
profile: Option<UserProfile>User’s profile page
flags: Option<UserFlags>Enum of user flags
privileged: boolWhether this user is privileged
bot: Option<BotInformation>Bot information
relationship: Option<RelationshipStatus>Current session user’s relationship with this user
online: Option<bool>Whether this user is currently online
Trait Implementations§
source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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