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 an “empty” (NULL-like) value variant for this type. Used when
constructing composite
Value containers (arrays, maps) or representing
absent optional data. This should never allocate and should not rely on
default trait implementations of Self.Source§fn as_value(self) -> Value
fn as_value(self) -> Value
Convert this value into its owned
Value representation. This should
perform any necessary wrapping (e.g. collections into List, decimals
into Decimal) but avoid lossy transformations unless explicitly
documented.Source§fn try_from_value(value: Value) -> Result<Self>
fn try_from_value(value: Value) -> Result<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