pub struct PresenceState(pub BTreeMap<String, Presence>);Expand description
Current Phoenix Presence entries keyed by application-defined presence key.
Tuple Fields§
§0: BTreeMap<String, Presence>Implementations§
Source§impl PresenceState
impl PresenceState
Sourcepub fn from_value(value: &Value) -> Result<Self, PresenceError>
pub fn from_value(value: &Value) -> Result<Self, PresenceError>
Decodes a presence_state JSON object.
Trait Implementations§
Source§impl Clone for PresenceState
impl Clone for PresenceState
Source§fn clone(&self) -> PresenceState
fn clone(&self) -> PresenceState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PresenceState
impl Debug for PresenceState
Source§impl Default for PresenceState
impl Default for PresenceState
Source§fn default() -> PresenceState
fn default() -> PresenceState
Returns the “default value” for a type. Read more
Source§impl PartialEq for PresenceState
impl PartialEq for PresenceState
Source§fn eq(&self, other: &PresenceState) -> bool
fn eq(&self, other: &PresenceState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PresenceState
Auto Trait Implementations§
impl Freeze for PresenceState
impl RefUnwindSafe for PresenceState
impl Send for PresenceState
impl Sync for PresenceState
impl Unpin for PresenceState
impl UnsafeUnpin for PresenceState
impl UnwindSafe for PresenceState
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
Mutably borrows from an owned value. Read more