Enum async_sea_orm_session::prelude::Value
[−]pub enum Value {
Show 27 variants
Bool(Option<bool>),
TinyInt(Option<i8>),
SmallInt(Option<i16>),
Int(Option<i32>),
BigInt(Option<i64>),
TinyUnsigned(Option<u8>),
SmallUnsigned(Option<u16>),
Unsigned(Option<u32>),
BigUnsigned(Option<u64>),
Float(Option<f32>),
Double(Option<f64>),
String(Option<Box<String, Global>>),
Char(Option<char>),
Bytes(Option<Box<Vec<u8, Global>, Global>>),
Json(Option<Box<Value, Global>>),
ChronoDate(Option<Box<NaiveDate, Global>>),
ChronoTime(Option<Box<NaiveTime, Global>>),
ChronoDateTime(Option<Box<NaiveDateTime, Global>>),
ChronoDateTimeUtc(Option<Box<DateTime<Utc>, Global>>),
ChronoDateTimeLocal(Option<Box<DateTime<Local>, Global>>),
ChronoDateTimeWithTimeZone(Option<Box<DateTime<FixedOffset>, Global>>),
TimeDate(Option<Box<Date, Global>>),
TimeTime(Option<Box<Time, Global>>),
TimeDateTime(Option<Box<PrimitiveDateTime, Global>>),
TimeDateTimeWithTimeZone(Option<Box<OffsetDateTime, Global>>),
Uuid(Option<Box<Uuid, Global>>),
Decimal(Option<Box<Decimal, Global>>),
}Expand description
Value variants
We want Value to be exactly 1 pointer sized, so anything larger should be boxed.
Variants
Bool(Option<bool>)
TinyInt(Option<i8>)
SmallInt(Option<i16>)
Int(Option<i32>)
BigInt(Option<i64>)
TinyUnsigned(Option<u8>)
SmallUnsigned(Option<u16>)
Unsigned(Option<u32>)
BigUnsigned(Option<u64>)
Float(Option<f32>)
Double(Option<f64>)
String(Option<Box<String, Global>>)
Char(Option<char>)
Bytes(Option<Box<Vec<u8, Global>, Global>>)
Json(Option<Box<Value, Global>>)
ChronoDate(Option<Box<NaiveDate, Global>>)
ChronoTime(Option<Box<NaiveTime, Global>>)
ChronoDateTime(Option<Box<NaiveDateTime, Global>>)
ChronoDateTimeUtc(Option<Box<DateTime<Utc>, Global>>)
ChronoDateTimeLocal(Option<Box<DateTime<Local>, Global>>)
ChronoDateTimeWithTimeZone(Option<Box<DateTime<FixedOffset>, Global>>)
TimeDate(Option<Box<Date, Global>>)
TimeTime(Option<Box<Time, Global>>)
TimeDateTime(Option<Box<PrimitiveDateTime, Global>>)
TimeDateTimeWithTimeZone(Option<Box<OffsetDateTime, Global>>)
Uuid(Option<Box<Uuid, Global>>)
Decimal(Option<Box<Decimal, Global>>)
Implementations
impl Value
impl Value
pub fn is_chrono_date(&self) -> bool
pub fn as_ref_chrono_date(&self) -> Option<&NaiveDate>
impl Value
impl Value
pub fn is_time_date(&self) -> bool
pub fn as_ref_time_date(&self) -> Option<&Date>
impl Value
impl Value
pub fn is_chrono_time(&self) -> bool
pub fn as_ref_chrono_time(&self) -> Option<&NaiveTime>
impl Value
impl Value
pub fn is_time_time(&self) -> bool
pub fn as_ref_time_time(&self) -> Option<&Time>
impl Value
impl Value
pub fn is_chrono_date_time(&self) -> bool
pub fn as_ref_chrono_date_time(&self) -> Option<&NaiveDateTime>
impl Value
impl Value
pub fn is_time_date_time(&self) -> bool
pub fn as_ref_time_date_time(&self) -> Option<&PrimitiveDateTime>
impl Value
impl Value
pub fn is_chrono_date_time_utc(&self) -> bool
pub fn as_ref_chrono_date_time_utc(&self) -> Option<&DateTime<Utc>>
impl Value
impl Value
pub fn is_chrono_date_time_local(&self) -> bool
pub fn as_ref_chrono_date_time_local(&self) -> Option<&DateTime<Local>>
impl Value
impl Value
pub fn is_chrono_date_time_with_time_zone(&self) -> bool
pub fn as_ref_chrono_date_time_with_time_zone(
&self
) -> Option<&DateTime<FixedOffset>>
impl Value
impl Value
pub fn is_time_date_time_with_time_zone(&self) -> bool
pub fn as_ref_time_date_time_with_time_zone(&self) -> Option<&OffsetDateTime>
impl Value
impl Value
pub fn chrono_as_naive_utc_in_string(&self) -> Option<String>
impl Value
impl Value
pub fn time_as_naive_utc_in_string(&self) -> Option<String>
impl Value
impl Value
pub fn is_decimal(&self) -> bool
pub fn as_ref_decimal(&self) -> Option<&Decimal>
pub fn decimal_to_f64(&self) -> Option<f64>
Trait Implementations
impl From<DateTime<FixedOffset>> for Value
impl From<DateTime<FixedOffset>> for Value
fn from(x: DateTime<FixedOffset>) -> Value
fn from(x: DateTime<FixedOffset>) -> Value
Converts to this type from the input type.
impl From<NaiveDateTime> for Value
impl From<NaiveDateTime> for Value
fn from(x: NaiveDateTime) -> Value
fn from(x: NaiveDateTime) -> Value
Converts to this type from the input type.
impl From<OffsetDateTime> for Value
impl From<OffsetDateTime> for Value
fn from(v: OffsetDateTime) -> Value
fn from(v: OffsetDateTime) -> Value
Converts to this type from the input type.
impl From<PrimitiveDateTime> for Value
impl From<PrimitiveDateTime> for Value
fn from(x: PrimitiveDateTime) -> Value
fn from(x: PrimitiveDateTime) -> Value
Converts to this type from the input type.
impl StructuralPartialEq for Value
Auto Trait Implementations
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more