#[non_exhaustive]pub struct IdentitySummary {
pub identity_id: Option<String>,
pub display_name: Option<String>,
pub account_number: Option<i32>,
pub avatar_url: Option<String>,
pub presence: Option<IdentityPresence>,
pub party: Option<PartyHandle>,
pub is_registered: Option<bool>,
pub external: Option<IdentityExternalLinks>,
pub following: Option<bool>,
pub is_following_me: Option<bool>,
pub is_mutual_following: Option<bool>,
}Expand description
An identity summary.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.identity_id: Option<String>A universally unique identifier.
display_name: Option<String>Represent a resource’s readable display name.
account_number: Option<i32>Identity profile account number (#1234). These are assigned in addition to an identity’s display name in order to allow multiple identities to have the same display name while still providing a unique handle. These are unique to each display name; you can have multiple accounts with different display names and the same account number.
avatar_url: Option<String>The URL of this identity’s avatar image.
presence: Option<IdentityPresence>Information about the identity’s current status, party, and active game.
party: Option<PartyHandle>A party handle.
is_registered: Option<bool>Whether or not this identity is registered with a linked account.
external: Option<IdentityExternalLinks>External links for an identity.
following: Option<bool>Whether or not the requestee’s identity is following this identity.
is_following_me: Option<bool>Whether or not this identity following the requestee’s identity.
is_mutual_following: Option<bool>Whether or not this identity is both followng and is followed by the requestee’s identity.
Implementations§
Source§impl IdentitySummary
impl IdentitySummary
Sourcepub fn identity_id(&self) -> Option<&str>
pub fn identity_id(&self) -> Option<&str>
A universally unique identifier.
Sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
Represent a resource’s readable display name.
Sourcepub fn account_number(&self) -> Option<i32>
pub fn account_number(&self) -> Option<i32>
Identity profile account number (#1234). These are assigned in addition to an identity’s display name in order to allow multiple identities to have the same display name while still providing a unique handle. These are unique to each display name; you can have multiple accounts with different display names and the same account number.
Sourcepub fn avatar_url(&self) -> Option<&str>
pub fn avatar_url(&self) -> Option<&str>
The URL of this identity’s avatar image.
Sourcepub fn presence(&self) -> Option<&IdentityPresence>
pub fn presence(&self) -> Option<&IdentityPresence>
Information about the identity’s current status, party, and active game.
Sourcepub fn party(&self) -> Option<&PartyHandle>
pub fn party(&self) -> Option<&PartyHandle>
A party handle.
Sourcepub fn is_registered(&self) -> Option<bool>
pub fn is_registered(&self) -> Option<bool>
Whether or not this identity is registered with a linked account.
Sourcepub fn external(&self) -> Option<&IdentityExternalLinks>
pub fn external(&self) -> Option<&IdentityExternalLinks>
External links for an identity.
Sourcepub fn following(&self) -> Option<bool>
pub fn following(&self) -> Option<bool>
Whether or not the requestee’s identity is following this identity.
Sourcepub fn is_following_me(&self) -> Option<bool>
pub fn is_following_me(&self) -> Option<bool>
Whether or not this identity following the requestee’s identity.
Sourcepub fn is_mutual_following(&self) -> Option<bool>
pub fn is_mutual_following(&self) -> Option<bool>
Whether or not this identity is both followng and is followed by the requestee’s identity.
Source§impl IdentitySummary
impl IdentitySummary
Sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture IdentitySummary
Trait Implementations§
Source§impl Clone for IdentitySummary
impl Clone for IdentitySummary
Source§fn clone(&self) -> IdentitySummary
fn clone(&self) -> IdentitySummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IdentitySummary
impl Debug for IdentitySummary
Source§impl PartialEq for IdentitySummary
impl PartialEq for IdentitySummary
Source§fn eq(&self, other: &IdentitySummary) -> bool
fn eq(&self, other: &IdentitySummary) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IdentitySummary
Auto Trait Implementations§
impl Freeze for IdentitySummary
impl RefUnwindSafe for IdentitySummary
impl Send for IdentitySummary
impl Sync for IdentitySummary
impl Unpin for IdentitySummary
impl UnsafeUnpin for IdentitySummary
impl UnwindSafe for IdentitySummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more