#[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 preserving source types without owning payloads.
The lifetime is that of the source storage; copying this view does not clone strings, maps, JSON, or other rich payloads.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unset(DataType)
Unset storage retaining its declared type.
Bool(bool)
Boolean value
Char(char)
Character value
Int8(i8)
8-bit signed integer
Int16(i16)
16-bit signed integer
Int32(i32)
32-bit signed integer
Int64(i64)
64-bit signed integer
Int128(i128)
128-bit signed integer
UInt8(u8)
8-bit unsigned integer
UInt16(u16)
16-bit unsigned integer
UInt32(u32)
32-bit unsigned integer
UInt64(u64)
64-bit unsigned integer
UInt128(u128)
128-bit unsigned integer
Float32(f32)
32-bit floating-point number
Float64(f64)
64-bit floating-point number
BigInteger(&'a BigInt)
Arbitrary-precision integer
BigDecimal(&'a BigDecimal)
Arbitrary-precision decimal
Tuple Fields
0: &'a BigDecimalBorrowed or copied source payload.
String(&'a str)
String value
Date(&'a NaiveDate)
Calendar date
Time(&'a NaiveTime)
Time of day
DateTime(&'a NaiveDateTime)
Date and time
Tuple Fields
0: &'a NaiveDateTimeBorrowed or copied source payload.
Instant(&'a DateTime<Utc>)
UTC instant
Duration(&'a Duration)
Duration
Url(&'a Url)
URL
StringMap(&'a HashMap<String, String>)
Map with string keys and values
Json(&'a Value)
JSON value