pub enum SqlValue {
Num(i64),
Float(f64),
Str(String),
UtcTime(DateTime<Utc>),
Time(NaiveTime),
Date(NaiveDate),
DateTime(NaiveDateTime),
Bool(bool),
Buff(Vec<u8>),
Json(Value),
Null,
}Variants§
Num(i64)
Float(f64)
Str(String)
UtcTime(DateTime<Utc>)
Time(NaiveTime)
Date(NaiveDate)
DateTime(NaiveDateTime)
Bool(bool)
Buff(Vec<u8>)
Json(Value)
Null
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SqlValue
impl<'de> Deserialize<'de> for SqlValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&APICategory> for SqlValue
impl From<&APICategory> for SqlValue
Source§fn from(v: &APICategory) -> Self
fn from(v: &APICategory) -> Self
Converts to this type from the input type.
Source§impl From<&AccessBucket> for SqlValue
impl From<&AccessBucket> for SqlValue
Source§fn from(v: &AccessBucket) -> Self
fn from(v: &AccessBucket) -> Self
Converts to this type from the input type.
Source§impl From<&DatabaseKind> for SqlValue
impl From<&DatabaseKind> for SqlValue
Source§fn from(v: &DatabaseKind) -> Self
fn from(v: &DatabaseKind) -> Self
Converts to this type from the input type.
Source§impl From<&FileRouterScope> for SqlValue
impl From<&FileRouterScope> for SqlValue
Source§fn from(v: &FileRouterScope) -> Self
fn from(v: &FileRouterScope) -> Self
Converts to this type from the input type.
Source§impl From<&NaiveDateTime> for SqlValue
impl From<&NaiveDateTime> for SqlValue
Source§fn from(v: &NaiveDateTime) -> Self
fn from(v: &NaiveDateTime) -> Self
Converts to this type from the input type.
Source§impl From<APICategory> for SqlValue
impl From<APICategory> for SqlValue
Source§fn from(v: APICategory) -> Self
fn from(v: APICategory) -> Self
Converts to this type from the input type.
Source§impl From<AccessBucket> for SqlValue
impl From<AccessBucket> for SqlValue
Source§fn from(v: AccessBucket) -> Self
fn from(v: AccessBucket) -> Self
Converts to this type from the input type.
Source§impl From<DatabaseKind> for SqlValue
impl From<DatabaseKind> for SqlValue
Source§fn from(v: DatabaseKind) -> Self
fn from(v: DatabaseKind) -> Self
Converts to this type from the input type.
Source§impl From<FileRouterScope> for SqlValue
impl From<FileRouterScope> for SqlValue
Source§fn from(v: FileRouterScope) -> Self
fn from(v: FileRouterScope) -> Self
Converts to this type from the input type.
Source§impl<T> From<Json<T>> for SqlValuewhere
T: Serialize,
Available on crate features postgres or mysql or sqlite only.
impl<T> From<Json<T>> for SqlValuewhere
T: Serialize,
Available on crate features
postgres or mysql or sqlite only.Source§impl From<NaiveDateTime> for SqlValue
impl From<NaiveDateTime> for SqlValue
Source§fn from(v: NaiveDateTime) -> Self
fn from(v: NaiveDateTime) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SqlValue
Auto Trait Implementations§
impl Freeze for SqlValue
impl RefUnwindSafe for SqlValue
impl Send for SqlValue
impl Sync for SqlValue
impl Unpin for SqlValue
impl UnsafeUnpin for SqlValue
impl UnwindSafe for SqlValue
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