#[non_exhaustive]pub enum ValueRef<'a> {
Show 26 variants
Unset(DataType),
Bool(bool),
Char(char),
Int8(i8),
Int16(i16),
Int32(i32),
Int64(i64),
Int128(i128),
UInt8(u8),
UInt16(u16),
UInt32(u32),
UInt64(u64),
UInt128(u128),
Float32(f32),
Float64(f64),
BigInteger(&'a BigInt),
BigDecimal(&'a BigDecimal),
String(&'a str),
Date(&'a NaiveDate),
Time(&'a NaiveTime),
DateTime(&'a NaiveDateTime),
Instant(&'a DateTime<Utc>),
Duration(&'a Duration),
Url(&'a Url),
StringMap(&'a HashMap<String, String>),
Json(&'a Value),
}Expand description
Borrowed semantic view of a crate::Value.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unset(DataType)
An unset value retaining its declared type.
Bool(bool)
A boolean value.
Char(char)
A character value.
Int8(i8)
A signed integer value.
Int16(i16)
A signed integer value.
Int32(i32)
A signed integer value.
Int64(i64)
A signed integer value.
Int128(i128)
A signed integer value.
UInt8(u8)
An unsigned integer value.
UInt16(u16)
An unsigned integer value.
UInt32(u32)
An unsigned integer value.
UInt64(u64)
An unsigned integer value.
UInt128(u128)
An unsigned integer value.
Float32(f32)
A 32-bit floating-point value.
Float64(f64)
A 64-bit floating-point value.
BigInteger(&'a BigInt)
An arbitrary-precision integer.
BigDecimal(&'a BigDecimal)
An arbitrary-precision decimal.
String(&'a str)
A string value.
Date(&'a NaiveDate)
A calendar date.
Time(&'a NaiveTime)
A time-of-day value.
DateTime(&'a NaiveDateTime)
A date-and-time value.
Instant(&'a DateTime<Utc>)
A UTC instant.
Duration(&'a Duration)
A duration value.
Url(&'a Url)
A URL value.
StringMap(&'a HashMap<String, String>)
A map with string keys and values.
Json(&'a Value)
A JSON value.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ValueRef<'a>
impl<'a> RefUnwindSafe for ValueRef<'a>
impl<'a> Send for ValueRef<'a>
impl<'a> Sync for ValueRef<'a>
impl<'a> Unpin for ValueRef<'a>
impl<'a> UnsafeUnpin for ValueRef<'a>
impl<'a> UnwindSafe for ValueRef<'a>
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> IntoValueDefault<T> for T
impl<T> IntoValueDefault<T> for T
Source§fn into_value_default(self) -> T
fn into_value_default(self) -> T
Converts this argument into the default value. Read more