pub struct PrimaryGuild {
pub identity_guild_id: Option<Id<GuildMarker>>,
pub identity_enabled: Option<bool>,
pub tag: Option<String>,
pub badge: Option<ImageHash>,
}Expand description
The Primary Guild data (also known as guild tag(s)) provided with the User object.
A primary guild tag has a 2-4 length text content and a badge, in Discord laid out as [BADGE][TAG].
Fields§
§identity_guild_id: Option<Id<GuildMarker>>The id of the user’s primary guild.
identity_enabled: Option<bool>Whether the user is displaying their primary guild’s server tag.
Is None if the tag was non-manually cleared by the user. (e.g. user left server, server stopped supporting guild tags)
tag: Option<String>The text content of the guild tag, within 2-4 characters.
badge: Option<ImageHash>The guild tag’s badge hash.
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<'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
Source§impl Hash for PrimaryGuild
impl Hash for PrimaryGuild
Source§impl PartialEq for PrimaryGuild
impl PartialEq for PrimaryGuild
Source§impl Serialize for PrimaryGuild
impl Serialize for PrimaryGuild
impl Eq for PrimaryGuild
impl StructuralPartialEq for PrimaryGuild
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