pub enum MutationMode {
Insert,
Replace,
Update,
}Expand description
MutationMode
Exact row-existence contract selected for one database mutation.
Variants§
Insert
Insert only when the target row is absent.
Replace
Replace either an absent or existing target row.
Update
Update only when the target row exists.
Trait Implementations§
Source§impl Clone for MutationMode
impl Clone for MutationMode
Source§fn clone(&self) -> MutationMode
fn clone(&self) -> MutationMode
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 MutationMode
Source§impl Debug for MutationMode
impl Debug for MutationMode
impl Eq for MutationMode
Source§impl PartialEq for MutationMode
impl PartialEq for MutationMode
impl StructuralPartialEq for MutationMode
Auto Trait Implementations§
impl Freeze for MutationMode
impl RefUnwindSafe for MutationMode
impl Send for MutationMode
impl Sync for MutationMode
impl Unpin for MutationMode
impl UnsafeUnpin for MutationMode
impl UnwindSafe for MutationMode
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