pub enum SQLiteInsertValue<'a, V: SQLParam, T> {
Omit,
Null,
Value(ValueWrapper<'a, V, T>),
}Expand description
Represents a value for INSERT operations that can be omitted, null, or a SQL expression
Variants§
Omit
Omit this column from the INSERT (use database default)
Null
Explicitly insert NULL
Value(ValueWrapper<'a, V, T>)
Insert a SQL expression (value, placeholder, etc.)
Implementations§
Source§impl<'a, T> SQLiteInsertValue<'a, SQLiteValue<'a>, T>
impl<'a, T> SQLiteInsertValue<'a, SQLiteValue<'a>, T>
Sourcepub fn into_owned(self) -> SQLiteInsertValue<'static, SQLiteValue<'static>, T>
pub fn into_owned(self) -> SQLiteInsertValue<'static, SQLiteValue<'static>, T>
Converts this InsertValue to an owned version with ’static lifetime
Trait Implementations§
Source§impl<'a, V: Clone + SQLParam, T: Clone> Clone for SQLiteInsertValue<'a, V, T>
impl<'a, V: Clone + SQLParam, T: Clone> Clone for SQLiteInsertValue<'a, V, T>
Source§fn clone(&self) -> SQLiteInsertValue<'a, V, T>
fn clone(&self) -> SQLiteInsertValue<'a, V, 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<'a, V: SQLParam, T> Default for SQLiteInsertValue<'a, V, T>
impl<'a, V: SQLParam, T> Default for SQLiteInsertValue<'a, V, T>
Source§fn default() -> SQLiteInsertValue<'a, V, T>
fn default() -> SQLiteInsertValue<'a, V, T>
Returns the “default value” for a type. Read more
Source§impl<'a, const N: usize> From<[u8; N]> for SQLiteInsertValue<'a, SQLiteValue<'a>, Vec<u8>>
impl<'a, const N: usize> From<[u8; N]> for SQLiteInsertValue<'a, SQLiteValue<'a>, Vec<u8>>
Source§impl<'a, T> From<Placeholder> for SQLiteInsertValue<'a, SQLiteValue<'a>, T>
impl<'a, T> From<Placeholder> for SQLiteInsertValue<'a, SQLiteValue<'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, U> From<T> for SQLiteInsertValue<'a, SQLiteValue<'a>, U>
impl<'a, T, U> From<T> for SQLiteInsertValue<'a, SQLiteValue<'a>, U>
Auto Trait Implementations§
impl<'a, V, T> Freeze for SQLiteInsertValue<'a, V, T>where
V: Freeze,
impl<'a, V, T> !RefUnwindSafe for SQLiteInsertValue<'a, V, T>
impl<'a, V, T> Send for SQLiteInsertValue<'a, V, T>
impl<'a, V, T> Sync for SQLiteInsertValue<'a, V, T>
impl<'a, V, T> Unpin for SQLiteInsertValue<'a, V, T>
impl<'a, V, T> !UnwindSafe for SQLiteInsertValue<'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