pub enum Passive<T: AsValue> {
Set(T),
NotSet,
}Expand description
Wrapper marking whether a column should be considered set or skipped (passive) on INSERT.
Variants§
Implementations§
Trait Implementations§
Source§impl<T: AsValue> AsValue for Passive<T>
impl<T: AsValue> AsValue for Passive<T>
Source§fn as_empty_value() -> Value
fn as_empty_value() -> Value
Return a NULL equivalent variant for this type.
Source§fn try_from_value(value: Value) -> Result<Self>
fn try_from_value(value: Value) -> Result<Self>
Try to convert a dynamic
Value into Self.impl<T: Eq + AsValue> Eq for Passive<T>
Auto Trait Implementations§
impl<T> Freeze for Passive<T>where
T: Freeze,
impl<T> RefUnwindSafe for Passive<T>where
T: RefUnwindSafe,
impl<T> Send for Passive<T>where
T: Send,
impl<T> Sync for Passive<T>where
T: Sync,
impl<T> Unpin for Passive<T>where
T: Unpin,
impl<T> UnwindSafe for Passive<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