pub enum ConversationStorePatch {
Reset {
owner_identity_id: String,
owner_did: String,
version: u64,
unread_total: u32,
items: Vec<ConversationSnapshotItem>,
},
Upsert {
owner_identity_id: String,
owner_did: String,
version: u64,
unread_total: u32,
item: ConversationSnapshotItem,
index: u32,
},
Remove {
owner_identity_id: String,
owner_did: String,
version: u64,
unread_total: u32,
thread_kind: String,
thread_id: String,
conversation_identity: Option<ConversationIdentity>,
},
Reorder {
owner_identity_id: String,
owner_did: String,
version: u64,
unread_total: u32,
thread_kind: String,
thread_id: String,
conversation_identity: Option<ConversationIdentity>,
index: u32,
},
RepairRequired {
owner_identity_id: String,
owner_did: String,
version: u64,
unread_total: u32,
reason: String,
},
}Variants§
Reset
Fields
§
items: Vec<ConversationSnapshotItem>Upsert
Fields
Remove
Fields
§
conversation_identity: Option<ConversationIdentity>Reorder
Fields
§
conversation_identity: Option<ConversationIdentity>RepairRequired
Trait Implementations§
Source§impl Clone for ConversationStorePatch
impl Clone for ConversationStorePatch
Source§fn clone(&self) -> ConversationStorePatch
fn clone(&self) -> ConversationStorePatch
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 ConversationStorePatch
impl Debug for ConversationStorePatch
Source§impl<'de> Deserialize<'de> for ConversationStorePatch
impl<'de> Deserialize<'de> for ConversationStorePatch
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
impl Eq for ConversationStorePatch
Source§impl PartialEq for ConversationStorePatch
impl PartialEq for ConversationStorePatch
Source§fn eq(&self, other: &ConversationStorePatch) -> bool
fn eq(&self, other: &ConversationStorePatch) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConversationStorePatch
impl Serialize for ConversationStorePatch
impl StructuralPartialEq for ConversationStorePatch
Auto Trait Implementations§
impl Freeze for ConversationStorePatch
impl RefUnwindSafe for ConversationStorePatch
impl Send for ConversationStorePatch
impl Sync for ConversationStorePatch
impl Unpin for ConversationStorePatch
impl UnsafeUnpin for ConversationStorePatch
impl UnwindSafe for ConversationStorePatch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.