Skip to main content

IdentityProfile

Struct IdentityProfile 

Source
#[non_exhaustive]
pub struct IdentityProfile {
Show 21 fields 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<PartySummary>, pub is_registered: Option<bool>, pub external: Option<IdentityExternalLinks>, pub is_admin: Option<bool>, pub is_game_linked: Option<bool>, pub dev_state: Option<IdentityDevState>, pub follower_count: Option<i32>, pub following_count: Option<i32>, pub following: Option<bool>, pub is_following_me: Option<bool>, pub is_mutual_following: Option<bool>, pub join_ts: Option<DateTime>, pub bio: Option<String>, pub linked_accounts: Option<Vec<IdentityLinkedAccount>>, pub groups: Option<Vec<IdentityGroup>>, pub games: Option<Vec<GameStatSummary>>,
}
Expand description

An identity profile.

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_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<PartySummary>

A party summary.

§is_registered: Option<bool>

Whether or not this identity is registered with a linked account.

§external: Option<IdentityExternalLinks>

External links for an identity.

§is_admin: Option<bool>

Whether or not this identity is an admin.

§is_game_linked: Option<bool>

Whether or not this game user has been linked through the Rivet dashboard.

§dev_state: Option<IdentityDevState>

The state of the given identity’s developer status.

§follower_count: Option<i32>

Unsigned 32 bit integer.

§following_count: Option<i32>

Unsigned 32 bit integer.

§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.

§join_ts: Option<DateTime>

RFC3339 timestamp.

§bio: Option<String>

Detailed information about a profile.

§linked_accounts: Option<Vec<IdentityLinkedAccount>>

A list of an identity’s linked accounts.

§groups: Option<Vec<IdentityGroup>>

A list of groups that the given identity is in.

§games: Option<Vec<GameStatSummary>>

A list of game statistic summaries.

Implementations§

Source§

impl IdentityProfile

Source

pub fn identity_id(&self) -> Option<&str>

A universally unique identifier.

Source

pub fn display_name(&self) -> Option<&str>

Represent a resource’s readable display name.

Source

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.

Source

pub fn avatar_url(&self) -> Option<&str>

The URL of this identity’s avatar image.

Source

pub fn presence(&self) -> Option<&IdentityPresence>

Information about the identity’s current status, party, and active game.

Source

pub fn party(&self) -> Option<&PartySummary>

A party summary.

Source

pub fn is_registered(&self) -> Option<bool>

Whether or not this identity is registered with a linked account.

Source

pub fn external(&self) -> Option<&IdentityExternalLinks>

External links for an identity.

Source

pub fn is_admin(&self) -> Option<bool>

Whether or not this identity is an admin.

Source

pub fn is_game_linked(&self) -> Option<bool>

Whether or not this game user has been linked through the Rivet dashboard.

Source

pub fn dev_state(&self) -> Option<&IdentityDevState>

The state of the given identity’s developer status.

Source

pub fn follower_count(&self) -> Option<i32>

Unsigned 32 bit integer.

Source

pub fn following_count(&self) -> Option<i32>

Unsigned 32 bit integer.

Source

pub fn following(&self) -> Option<bool>

Whether or not the requestee’s identity is following this identity.

Source

pub fn is_following_me(&self) -> Option<bool>

Whether or not this identity following the requestee’s identity.

Source

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

pub fn join_ts(&self) -> Option<&DateTime>

RFC3339 timestamp.

Source

pub fn bio(&self) -> Option<&str>

Detailed information about a profile.

Source

pub fn linked_accounts(&self) -> Option<&[IdentityLinkedAccount]>

A list of an identity’s linked accounts.

Source

pub fn groups(&self) -> Option<&[IdentityGroup]>

A list of groups that the given identity is in.

Source

pub fn games(&self) -> Option<&[GameStatSummary]>

A list of game statistic summaries.

Source§

impl IdentityProfile

Source

pub fn builder() -> Builder

Creates a new builder-style object to manufacture IdentityProfile

Trait Implementations§

Source§

impl Clone for IdentityProfile

Source§

fn clone(&self) -> IdentityProfile

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IdentityProfile

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for IdentityProfile

Source§

fn eq(&self, other: &IdentityProfile) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for IdentityProfile

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more