pub enum WriteOperation {
Update(Document),
Delete(String),
Transform(DocumentTransform),
}Expand description
The type of write operation.
Variants§
Update(Document)
Updates a document.
Delete(String)
Deletes a document.
Transform(DocumentTransform)
Applies a transformation to a document.
Trait Implementations§
Source§impl Clone for WriteOperation
impl Clone for WriteOperation
Source§fn clone(&self) -> WriteOperation
fn clone(&self) -> WriteOperation
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 WriteOperation
impl Debug for WriteOperation
Source§impl<'de> Deserialize<'de> for WriteOperation
impl<'de> Deserialize<'de> for WriteOperation
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 WriteOperation
impl RefUnwindSafe for WriteOperation
impl Send for WriteOperation
impl Sync for WriteOperation
impl Unpin for WriteOperation
impl UnwindSafe for WriteOperation
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