pub struct PrimaryGuild { /* private fields */ }Implementations§
Source§impl PrimaryGuild
impl PrimaryGuild
Sourcepub fn identity_guild_id(&self) -> Option<&str>
pub fn identity_guild_id(&self) -> Option<&str>
The ID of the user’s primary guild.
Sourcepub fn identity_enabled(&self) -> Option<bool>
pub fn identity_enabled(&self) -> Option<bool>
Whether the user is displaying the primary guild’s server tag.
This can be None if the system clears the identity, e.g. the server no longer supports tags.
This will be false if the user manually removes their tag.
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 (const: unstable) · 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<'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 UnsafeUnpin 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