pub enum WriteMode<Key = i64> {
Create,
Update {
id: Key,
},
Patch {
id: Key,
},
}Variants§
Trait Implementations§
impl<Key> Copy for WriteMode<Key>where
Key: Copy,
impl<Key> Eq for WriteMode<Key>where
Key: Eq,
impl<Key> StructuralPartialEq for WriteMode<Key>where
Key: PartialEq,
Auto Trait Implementations§
impl<Key> Forget for WriteMode<Key>
impl<Key> Freeze for WriteMode<Key>where
Key: Freeze,
impl<Key> Move for WriteMode<Key>
impl<Key> RefUnwindSafe for WriteMode<Key>where
Key: RefUnwindSafe,
impl<Key> Send for WriteMode<Key>where
Key: Send,
impl<Key> Sync for WriteMode<Key>where
Key: Sync,
impl<Key> Unpin for WriteMode<Key>where
Key: Unpin,
impl<Key> UnsafeUnpin for WriteMode<Key>where
Key: UnsafeUnpin,
impl<Key> UnwindSafe for WriteMode<Key>where
Key: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.