pub struct PresenceState {
pub state: HashMap<String, Value>,
}
Expand description
プレゼンス状態全体
Fields§
§state: HashMap<String, Value>
Implementations§
Source§impl PresenceState
impl PresenceState
pub fn new() -> Self
Sourcepub fn sync(&mut self, presence_diff: &PresenceChange)
pub fn sync(&mut self, presence_diff: &PresenceChange)
Apply presence diff to update the state
Trait Implementations§
Source§impl Clone for PresenceState
impl Clone for PresenceState
Source§fn clone(&self) -> PresenceState
fn clone(&self) -> PresenceState
Returns a copy of the value. Read more
1.0.0 · 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§impl<'de> Deserialize<'de> for PresenceState
impl<'de> Deserialize<'de> for PresenceState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PresenceState
impl RefUnwindSafe for PresenceState
impl Send for PresenceState
impl Sync for PresenceState
impl Unpin 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