#[repr(u32)]pub enum DocOperator {
Insert = 0,
Update = 1,
Upsert = 2,
Delete = 3,
}Expand description
Document operation type.
Variants§
Insert = 0
Insert a new document (fails if primary key already exists).
Update = 1
Update an existing document (fails if primary key does not exist).
Upsert = 2
Insert or update a document (creates if not exists, updates if exists).
Delete = 3
Delete a document by primary key.
Trait Implementations§
Source§impl Clone for DocOperator
impl Clone for DocOperator
Source§fn clone(&self) -> DocOperator
fn clone(&self) -> DocOperator
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 moreimpl Copy for DocOperator
Source§impl Debug for DocOperator
impl Debug for DocOperator
Source§impl Display for DocOperator
impl Display for DocOperator
impl Eq for DocOperator
Source§impl From<DocOperator> for u32
impl From<DocOperator> for u32
Source§fn from(op: DocOperator) -> Self
fn from(op: DocOperator) -> Self
Converts to this type from the input type.
Source§impl From<u32> for DocOperator
impl From<u32> for DocOperator
Source§impl PartialEq for DocOperator
impl PartialEq for DocOperator
Source§fn eq(&self, other: &DocOperator) -> bool
fn eq(&self, other: &DocOperator) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DocOperator
Auto Trait Implementations§
impl Freeze for DocOperator
impl RefUnwindSafe for DocOperator
impl Send for DocOperator
impl Sync for DocOperator
impl Unpin for DocOperator
impl UnsafeUnpin for DocOperator
impl UnwindSafe for DocOperator
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