pub enum StoreChange {
Create {
id: DocumentId,
doc_type: DocumentType,
title: String,
},
Update {
id: DocumentId,
delta: DocumentDelta,
},
Delete {
id: DocumentId,
},
MetadataChange {
id: DocumentId,
key: String,
value: Option<String>,
},
}Expand description
A change to the store.
Variants§
Create
A new document was created.
Update
A document was updated.
Delete
A document was deleted.
Fields
§
id: DocumentIdMetadataChange
Document metadata changed.
Trait Implementations§
Source§impl Clone for StoreChange
impl Clone for StoreChange
Source§fn clone(&self) -> StoreChange
fn clone(&self) -> StoreChange
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 StoreChange
impl Debug for StoreChange
Source§impl<'de> Deserialize<'de> for StoreChange
impl<'de> Deserialize<'de> for StoreChange
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 StoreChange
impl RefUnwindSafe for StoreChange
impl Send for StoreChange
impl Sync for StoreChange
impl Unpin for StoreChange
impl UnwindSafe for StoreChange
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