pub enum InsertValue {
Null,
Int(i64),
String(String),
Bool(bool),
Float(f64),
Decimal(Decimal),
Bytes(Vec<u8>),
DateTime(DateTime<Utc>),
Uuid(Uuid),
}Variants§
Null
Int(i64)
String(String)
Bool(bool)
Float(f64)
Decimal(Decimal)
Bytes(Vec<u8>)
DateTime(DateTime<Utc>)
Uuid(Uuid)
Trait Implementations§
Source§impl Clone for InsertValue
impl Clone for InsertValue
Source§fn clone(&self) -> InsertValue
fn clone(&self) -> InsertValue
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 Debug for InsertValue
impl Debug for InsertValue
Source§impl From<&[u8]> for InsertValue
impl From<&[u8]> for InsertValue
Source§fn from(value: &[u8]) -> InsertValue
fn from(value: &[u8]) -> InsertValue
Converts to this type from the input type.
Source§impl From<&str> for InsertValue
impl From<&str> for InsertValue
Source§fn from(value: &str) -> InsertValue
fn from(value: &str) -> InsertValue
Converts to this type from the input type.
Source§impl From<Decimal> for InsertValue
impl From<Decimal> for InsertValue
Source§fn from(value: Decimal) -> InsertValue
fn from(value: Decimal) -> InsertValue
Converts to this type from the input type.
Source§impl<T> From<Option<T>> for InsertValuewhere
T: Into<InsertValue>,
impl<T> From<Option<T>> for InsertValuewhere
T: Into<InsertValue>,
Source§fn from(value: Option<T>) -> InsertValue
fn from(value: Option<T>) -> InsertValue
Converts to this type from the input type.
Source§impl From<String> for InsertValue
impl From<String> for InsertValue
Source§fn from(value: String) -> InsertValue
fn from(value: String) -> InsertValue
Converts to this type from the input type.
Source§impl From<Uuid> for InsertValue
impl From<Uuid> for InsertValue
Source§fn from(value: Uuid) -> InsertValue
fn from(value: Uuid) -> InsertValue
Converts to this type from the input type.
Source§impl From<bool> for InsertValue
impl From<bool> for InsertValue
Source§fn from(value: bool) -> InsertValue
fn from(value: bool) -> InsertValue
Converts to this type from the input type.
Source§impl From<f64> for InsertValue
impl From<f64> for InsertValue
Source§fn from(value: f64) -> InsertValue
fn from(value: f64) -> InsertValue
Converts to this type from the input type.
Source§impl From<i64> for InsertValue
impl From<i64> for InsertValue
Source§fn from(value: i64) -> InsertValue
fn from(value: i64) -> InsertValue
Converts to this type from the input type.
Source§impl PartialEq for InsertValue
impl PartialEq for InsertValue
Source§fn eq(&self, other: &InsertValue) -> bool
fn eq(&self, other: &InsertValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InsertValue
Auto Trait Implementations§
impl Freeze for InsertValue
impl RefUnwindSafe for InsertValue
impl Send for InsertValue
impl Sync for InsertValue
impl Unpin for InsertValue
impl UnsafeUnpin for InsertValue
impl UnwindSafe for InsertValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more