#[non_exhaustive]pub struct SetupIdentityOutput {
pub identity_token: Option<String>,
pub identity_token_expire_ts: Option<DateTime>,
pub identity: Option<IdentityProfile>,
pub game_id: Option<String>,
}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_token: Option<String>Token used to authenticate the identity. Should be stored somewhere permanent. Pass this to rivet.api.identity#SetupIdentity$existing_identity_token next time rivet.api.identity#SetupIdentity is called. Token has a 90 day TTL. This means that if rivet.api.identity#SetupIdentity is not called again within 90 days, the token will no longer be valid. If this happens, the user can recover their account through the linking process (see rivet.api.identity#PrepareGameLink). This token should be stored locally and never sent to a server or another device. If this token is comprimised, anyone with access to this token has control of the identity.
identity_token_expire_ts: Option<DateTime>Timestamp (in milliseconds) at which the token expires.
identity: Option<IdentityProfile>Information about the identity that was just authenticated.
game_id: Option<String>A universally unique identifier.
Implementations§
Source§impl SetupIdentityOutput
impl SetupIdentityOutput
Sourcepub fn identity_token(&self) -> Option<&str>
pub fn identity_token(&self) -> Option<&str>
Token used to authenticate the identity. Should be stored somewhere permanent. Pass this to rivet.api.identity#SetupIdentity$existing_identity_token next time rivet.api.identity#SetupIdentity is called. Token has a 90 day TTL. This means that if rivet.api.identity#SetupIdentity is not called again within 90 days, the token will no longer be valid. If this happens, the user can recover their account through the linking process (see rivet.api.identity#PrepareGameLink). This token should be stored locally and never sent to a server or another device. If this token is comprimised, anyone with access to this token has control of the identity.
Sourcepub fn identity_token_expire_ts(&self) -> Option<&DateTime>
pub fn identity_token_expire_ts(&self) -> Option<&DateTime>
Timestamp (in milliseconds) at which the token expires.
Sourcepub fn identity(&self) -> Option<&IdentityProfile>
pub fn identity(&self) -> Option<&IdentityProfile>
Information about the identity that was just authenticated.
Source§impl SetupIdentityOutput
impl SetupIdentityOutput
Sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SetupIdentityOutput
Trait Implementations§
Source§impl Clone for SetupIdentityOutput
impl Clone for SetupIdentityOutput
Source§fn clone(&self) -> SetupIdentityOutput
fn clone(&self) -> SetupIdentityOutput
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 SetupIdentityOutput
impl Debug for SetupIdentityOutput
Source§impl PartialEq for SetupIdentityOutput
impl PartialEq for SetupIdentityOutput
impl StructuralPartialEq for SetupIdentityOutput
Auto Trait Implementations§
impl Freeze for SetupIdentityOutput
impl RefUnwindSafe for SetupIdentityOutput
impl Send for SetupIdentityOutput
impl Sync for SetupIdentityOutput
impl Unpin for SetupIdentityOutput
impl UnsafeUnpin for SetupIdentityOutput
impl UnwindSafe for SetupIdentityOutput
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