#[non_exhaustive]pub struct PresenceUser {Show 13 fields
pub id: UserId,
pub username: Option<CompactString>,
pub discriminator: Option<u16>,
pub global_name: Option<CompactString>,
pub avatar: Option<ImageHash>,
pub bot: Option<bool>,
pub system: Option<bool>,
pub banner: Option<ImageHash>,
pub accent_color: Option<u32>,
pub public_flags: Option<UserFlags>,
pub avatar_decoration_data: Option<Box<AvatarDecorationData>>,
pub collectibles: Option<Box<Collectibles>>,
pub primary_guild: Option<Box<PrimaryGuild>>,
}Expand description
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.id: UserIdThe user’s ID.
username: Option<CompactString>The username.
discriminator: Option<u16>The legacy tag (0 for migrated users).
global_name: Option<CompactString>The display name.
avatar: Option<ImageHash>The avatar hash.
bot: Option<bool>Whether the user is a bot.
system: Option<bool>Whether the user is a Discord system user.
The banner hash.
accent_color: Option<u32>The banner color.
public_flags: Option<UserFlags>The public flags.
avatar_decoration_data: Option<Box<AvatarDecorationData>>The avatar decoration.
collectibles: Option<Box<Collectibles>>The collectibles.
primary_guild: Option<Box<PrimaryGuild>>The displayed server tag.
Trait Implementations§
Source§impl Clone for PresenceUser
impl Clone for PresenceUser
Source§impl Debug for PresenceUser
impl Debug for PresenceUser
Source§impl<'de> Deserialize<'de> for PresenceUser
impl<'de> Deserialize<'de> for PresenceUser
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
impl Eq for PresenceUser
Source§impl PartialEq for PresenceUser
impl PartialEq for PresenceUser
Source§impl Serialize for PresenceUser
impl Serialize for PresenceUser
impl StructuralPartialEq for PresenceUser
Auto Trait Implementations§
impl Freeze for PresenceUser
impl RefUnwindSafe for PresenceUser
impl Send for PresenceUser
impl Sync for PresenceUser
impl Unpin for PresenceUser
impl UnsafeUnpin for PresenceUser
impl UnwindSafe for PresenceUser
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