pub enum PostgresUpdateValue<'a, V: SQLParam, T> {
Skip,
Null,
Value(ValueWrapper<'a, V, T>),
}Expand description
Represents a value for UPDATE operations that can be skipped, null, or a SQL expression.
Variants§
Skip
Don’t include this column in the SET clause
Null
Explicitly set column = NULL
Value(ValueWrapper<'a, V, T>)
Set column to a SQL expression (value, placeholder, etc.)
Implementations§
Trait Implementations§
Source§impl<'a, V: Clone + SQLParam, T: Clone> Clone for PostgresUpdateValue<'a, V, T>
impl<'a, V: Clone + SQLParam, T: Clone> Clone for PostgresUpdateValue<'a, V, T>
Source§fn clone(&self) -> PostgresUpdateValue<'a, V, T>
fn clone(&self) -> PostgresUpdateValue<'a, V, T>
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<'a, V: SQLParam, T> Default for PostgresUpdateValue<'a, V, T>
impl<'a, V: SQLParam, T> Default for PostgresUpdateValue<'a, V, T>
Source§fn default() -> PostgresUpdateValue<'a, V, T>
fn default() -> PostgresUpdateValue<'a, V, T>
Returns the “default value” for a type. Read more
Source§impl<'a> From<&str> for PostgresUpdateValue<'a, PostgresValue<'a>, String>
impl<'a> From<&str> for PostgresUpdateValue<'a, PostgresValue<'a>, String>
Source§impl<'a, C, T> From<Excluded<C>> for PostgresUpdateValue<'a, PostgresValue<'a>, T>where
C: SQLColumnInfo,
impl<'a, C, T> From<Excluded<C>> for PostgresUpdateValue<'a, PostgresValue<'a>, T>where
C: SQLColumnInfo,
Source§impl<'a, T> From<Placeholder> for PostgresUpdateValue<'a, PostgresValue<'a>, T>
impl<'a, T> From<Placeholder> for PostgresUpdateValue<'a, PostgresValue<'a>, T>
Source§fn from(placeholder: Placeholder) -> Self
fn from(placeholder: Placeholder) -> Self
Converts to this type from the input type.
Source§impl<'a, T> From<T> for PostgresUpdateValue<'a, PostgresValue<'a>, T>where
T: TryInto<PostgresValue<'a>>,
impl<'a, T> From<T> for PostgresUpdateValue<'a, PostgresValue<'a>, T>where
T: TryInto<PostgresValue<'a>>,
Source§impl<'a, M: DataType, N: Nullability, T> From<TypedPlaceholder<M, N>> for PostgresUpdateValue<'a, PostgresValue<'a>, T>
impl<'a, M: DataType, N: Nullability, T> From<TypedPlaceholder<M, N>> for PostgresUpdateValue<'a, PostgresValue<'a>, T>
Source§fn from(typed: TypedPlaceholder<M, N>) -> Self
fn from(typed: TypedPlaceholder<M, N>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, V, T> Freeze for PostgresUpdateValue<'a, V, T>where
V: Freeze,
impl<'a, V, T> RefUnwindSafe for PostgresUpdateValue<'a, V, T>where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, V, T> Send for PostgresUpdateValue<'a, V, T>
impl<'a, V, T> Sync for PostgresUpdateValue<'a, V, T>
impl<'a, V, T> Unpin for PostgresUpdateValue<'a, V, T>
impl<'a, V, T> UnsafeUnpin for PostgresUpdateValue<'a, V, T>where
V: UnsafeUnpin,
impl<'a, V, T> UnwindSafe for PostgresUpdateValue<'a, V, T>
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