pub enum UpsertAction {
Update,
Ignore,
}Expand description
Action to take when an upsert finds an existing row.
Variants§
Trait Implementations§
Source§impl Clone for UpsertAction
impl Clone for UpsertAction
Source§fn clone(&self) -> UpsertAction
fn clone(&self) -> UpsertAction
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 UpsertAction
impl Debug for UpsertAction
Source§impl PartialEq for UpsertAction
impl PartialEq for UpsertAction
Source§fn eq(&self, other: &UpsertAction) -> bool
fn eq(&self, other: &UpsertAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for UpsertAction
impl Eq for UpsertAction
impl StructuralPartialEq for UpsertAction
Auto Trait Implementations§
impl Freeze for UpsertAction
impl RefUnwindSafe for UpsertAction
impl Send for UpsertAction
impl Sync for UpsertAction
impl Unpin for UpsertAction
impl UnsafeUnpin for UpsertAction
impl UnwindSafe for UpsertAction
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.