Struct rivet_chat::model::IdentityPresence
source · [−]#[non_exhaustive]pub struct IdentityPresence {
pub update_ts: Option<DateTime>,
pub status: Option<IdentityStatus>,
pub game_activity: Option<IdentityGameActivity>,
}Expand description
Information about the identity’s current status, party, and active game.
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.update_ts: Option<DateTime>RFC3339 timestamp.
status: Option<IdentityStatus>The current status of an identity. This helps players understand if another player is currently playing or has their game in the background.
game_activity: Option<IdentityGameActivity>The game an identity is currently participating in.
Implementations
sourceimpl IdentityPresence
impl IdentityPresence
sourcepub fn status(&self) -> Option<&IdentityStatus>
pub fn status(&self) -> Option<&IdentityStatus>
The current status of an identity. This helps players understand if another player is currently playing or has their game in the background.
sourcepub fn game_activity(&self) -> Option<&IdentityGameActivity>
pub fn game_activity(&self) -> Option<&IdentityGameActivity>
The game an identity is currently participating in.
sourceimpl IdentityPresence
impl IdentityPresence
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture IdentityPresence
Trait Implementations
sourceimpl Clone for IdentityPresence
impl Clone for IdentityPresence
sourcefn clone(&self) -> IdentityPresence
fn clone(&self) -> IdentityPresence
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for IdentityPresence
impl Debug for IdentityPresence
sourceimpl PartialEq<IdentityPresence> for IdentityPresence
impl PartialEq<IdentityPresence> for IdentityPresence
sourcefn eq(&self, other: &IdentityPresence) -> bool
fn eq(&self, other: &IdentityPresence) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &IdentityPresence) -> bool
fn ne(&self, other: &IdentityPresence) -> bool
This method tests for !=.
impl StructuralPartialEq for IdentityPresence
Auto Trait Implementations
impl RefUnwindSafe for IdentityPresence
impl Send for IdentityPresence
impl Sync for IdentityPresence
impl Unpin for IdentityPresence
impl UnwindSafe for IdentityPresence
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more