pub enum ThreadMessageStorePatch {
Reset {
owner_identity_id: String,
owner_did: String,
version: u64,
thread_kind: String,
thread_id: String,
conversation_identity: Option<ConversationIdentity>,
items: Vec<Message>,
},
Upsert {
owner_identity_id: String,
owner_did: String,
version: u64,
thread_kind: String,
thread_id: String,
conversation_identity: Option<ConversationIdentity>,
message: Message,
index: u32,
},
Remove {
owner_identity_id: String,
owner_did: String,
version: u64,
thread_kind: String,
thread_id: String,
conversation_identity: Option<ConversationIdentity>,
message_id: String,
},
RepairRequired {
owner_identity_id: String,
owner_did: String,
version: u64,
thread_kind: String,
thread_id: String,
conversation_identity: Option<ConversationIdentity>,
reason: String,
},
}Variants§
Reset
Fields
§
conversation_identity: Option<ConversationIdentity>Upsert
Fields
§
conversation_identity: Option<ConversationIdentity>Remove
Fields
§
conversation_identity: Option<ConversationIdentity>RepairRequired
Trait Implementations§
Source§impl Clone for ThreadMessageStorePatch
impl Clone for ThreadMessageStorePatch
Source§fn clone(&self) -> ThreadMessageStorePatch
fn clone(&self) -> ThreadMessageStorePatch
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 ThreadMessageStorePatch
impl Debug for ThreadMessageStorePatch
Source§impl<'de> Deserialize<'de> for ThreadMessageStorePatch
impl<'de> Deserialize<'de> for ThreadMessageStorePatch
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 ThreadMessageStorePatch
Source§impl PartialEq for ThreadMessageStorePatch
impl PartialEq for ThreadMessageStorePatch
Source§fn eq(&self, other: &ThreadMessageStorePatch) -> bool
fn eq(&self, other: &ThreadMessageStorePatch) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ThreadMessageStorePatch
impl Serialize for ThreadMessageStorePatch
impl StructuralPartialEq for ThreadMessageStorePatch
Auto Trait Implementations§
impl Freeze for ThreadMessageStorePatch
impl RefUnwindSafe for ThreadMessageStorePatch
impl Send for ThreadMessageStorePatch
impl Sync for ThreadMessageStorePatch
impl Unpin for ThreadMessageStorePatch
impl UnsafeUnpin for ThreadMessageStorePatch
impl UnwindSafe for ThreadMessageStorePatch
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.