pub enum Value {
Null,
Bool(bool),
I64(i64),
U64(u64),
F64(f64),
Decimal(Decimal),
Text(String),
Json(Value),
Date(NaiveDate),
Timestamp(DateTime<Utc>),
Object(BTreeMap<String, Value>),
List(Vec<Value>),
}Variants§
Null
Bool(bool)
I64(i64)
U64(u64)
F64(f64)
Decimal(Decimal)
Text(String)
Json(Value)
Date(NaiveDate)
Timestamp(DateTime<Utc>)
Object(BTreeMap<String, Value>)
List(Vec<Value>)
Implementations§
Source§impl Value
impl Value
pub fn object(record: Record) -> Self
pub fn try_i64(&self) -> Option<i64>
pub fn try_u64(&self) -> Option<u64>
pub fn try_decimal(&self) -> Option<Decimal>
pub fn try_f64(&self) -> Option<f64>
pub fn try_text(&self) -> Option<&str>
pub fn try_bool(&self) -> Option<bool>
pub fn try_date(&self) -> Option<NaiveDate>
pub fn try_timestamp(&self) -> Option<DateTime<Utc>>
pub fn to_json_value(&self) -> Value
Trait Implementations§
Source§impl TeaqlEmpty for Value
impl TeaqlEmpty for Value
fn teaql_is_empty(&self) -> bool
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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