pub enum UpdateField<T> {
Unchanged,
Set(T),
}Expand description
Represents a field in a partial update operation.
Unchanged: field is not included in the SET clauseSet(T): field is set to the given value (useSet(None)for nullable columns to set NULL)
Variants§
Implementations§
Source§impl<T> UpdateField<T>
impl<T> UpdateField<T>
Trait Implementations§
Source§impl<T: Clone> Clone for UpdateField<T>
impl<T: Clone> Clone for UpdateField<T>
Source§fn clone(&self) -> UpdateField<T>
fn clone(&self) -> UpdateField<T>
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<T: Debug> Debug for UpdateField<T>
impl<T: Debug> Debug for UpdateField<T>
Source§impl<T> Default for UpdateField<T>
impl<T> Default for UpdateField<T>
Source§impl<T: PartialEq> PartialEq for UpdateField<T>
impl<T: PartialEq> PartialEq for UpdateField<T>
Source§impl<T: ToSqlParam + 'static> ToSqlParam for UpdateField<T>
impl<T: ToSqlParam + 'static> ToSqlParam for UpdateField<T>
impl<T> StructuralPartialEq for UpdateField<T>
Auto Trait Implementations§
impl<T> Freeze for UpdateField<T>where
T: Freeze,
impl<T> RefUnwindSafe for UpdateField<T>where
T: RefUnwindSafe,
impl<T> Send for UpdateField<T>where
T: Send,
impl<T> Sync for UpdateField<T>where
T: Sync,
impl<T> Unpin for UpdateField<T>where
T: Unpin,
impl<T> UnsafeUnpin for UpdateField<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for UpdateField<T>where
T: 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