#[non_exhaustive]pub struct PrimaryGuild {
pub identity_guild_id: Option<GuildId>,
pub identity_enabled: Option<bool>,
pub tag: Option<String>,
pub badge: Option<ImageHash>,
}Expand description
User’s Primary Guild object
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.identity_guild_id: Option<GuildId>The id of the user’s primary guild.
identity_enabled: Option<bool>Whether the user is displaying the primary guild’s server tag. This can be null if the system clears the identity, e.g. because the server no longer supports tags.
tag: Option<String>The text of the User’s server tag.
badge: Option<ImageHash>The hash of the server badge.
Implementations§
Trait Implementations§
Source§impl Clone for PrimaryGuild
impl Clone for PrimaryGuild
Source§fn clone(&self) -> PrimaryGuild
fn clone(&self) -> PrimaryGuild
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrimaryGuild
impl Debug for PrimaryGuild
Source§impl Default for PrimaryGuild
impl Default for PrimaryGuild
Source§fn default() -> PrimaryGuild
fn default() -> PrimaryGuild
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrimaryGuild
impl<'de> Deserialize<'de> for PrimaryGuild
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
Auto Trait Implementations§
impl Freeze for PrimaryGuild
impl RefUnwindSafe for PrimaryGuild
impl Send for PrimaryGuild
impl Sync for PrimaryGuild
impl Unpin for PrimaryGuild
impl UnwindSafe for PrimaryGuild
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