#[non_exhaustive]pub struct IdentityHandle {
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>,
}
Expand description
An identity handle.
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.
Implementations§
Source§impl IdentityHandle
impl IdentityHandle
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.
Source§impl IdentityHandle
impl IdentityHandle
Sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture IdentityHandle
Trait Implementations§
Source§impl Clone for IdentityHandle
impl Clone for IdentityHandle
Source§fn clone(&self) -> IdentityHandle
fn clone(&self) -> IdentityHandle
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for IdentityHandle
impl Debug for IdentityHandle
Source§impl PartialEq for IdentityHandle
impl PartialEq for IdentityHandle
impl StructuralPartialEq for IdentityHandle
Auto Trait Implementations§
impl Freeze for IdentityHandle
impl RefUnwindSafe for IdentityHandle
impl Send for IdentityHandle
impl Sync for IdentityHandle
impl Unpin for IdentityHandle
impl UnwindSafe for IdentityHandle
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