pub struct CRDTSyncPayload {
pub payload_type: String,
pub crdt_type: String,
pub state: Value,
pub vector_clock: BTreeMap<String, i64>,
}Expand description
CRDT state synchronization payload.
Fields§
§payload_type: String§crdt_type: String§state: Value§vector_clock: BTreeMap<String, i64>Implementations§
Trait Implementations§
Source§impl Clone for CRDTSyncPayload
impl Clone for CRDTSyncPayload
Source§fn clone(&self) -> CRDTSyncPayload
fn clone(&self) -> CRDTSyncPayload
Returns a duplicate 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 CRDTSyncPayload
impl Debug for CRDTSyncPayload
Source§impl<'de> Deserialize<'de> for CRDTSyncPayload
impl<'de> Deserialize<'de> for CRDTSyncPayload
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CRDTSyncPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CRDTSyncPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CRDTSyncPayload
impl Serialize for CRDTSyncPayload
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CRDTSyncPayload
impl RefUnwindSafe for CRDTSyncPayload
impl Send for CRDTSyncPayload
impl Sync for CRDTSyncPayload
impl Unpin for CRDTSyncPayload
impl UnsafeUnpin for CRDTSyncPayload
impl UnwindSafe for CRDTSyncPayload
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