pub struct SyncEntityItem {
pub entity_id: String,
pub version: u64,
pub deleted: bool,
pub payload: Option<Value>,
}Expand description
单条实体同步项
Fields§
§entity_id: String实体 ID(如 user_id, group_id, channel_id)
version: u64该实体最新版本号
deleted: booltrue 表示服务端已删除(Tombstone)
payload: Option<Value>实体数据,具体字段随 entity_type 变化
Trait Implementations§
Source§impl Clone for SyncEntityItem
impl Clone for SyncEntityItem
Source§fn clone(&self) -> SyncEntityItem
fn clone(&self) -> SyncEntityItem
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 SyncEntityItem
impl Debug for SyncEntityItem
Source§impl<'de> Deserialize<'de> for SyncEntityItem
impl<'de> Deserialize<'de> for SyncEntityItem
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 SyncEntityItem
impl RefUnwindSafe for SyncEntityItem
impl Send for SyncEntityItem
impl Sync for SyncEntityItem
impl Unpin for SyncEntityItem
impl UnsafeUnpin for SyncEntityItem
impl UnwindSafe for SyncEntityItem
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