#[non_exhaustive]pub enum Value {
Null,
Bool(bool),
Int(i64),
Float(f64),
Str(String),
Bytes(Vec<u8>),
List(Vec<Value>),
Map(BTreeMap<String, Value>),
DateTime(String),
Date(String),
Decimal(String),
Uuid(String),
}Expand description
A single language-agnostic value.
The first variants map 1:1 onto JSON. The trailing typed-scalar variants
(DateTime, Date, Decimal, Uuid) exist so the cursor codec can
round-trip ordering keys with full fidelity — they carry the value’s
canonical string form and the binding layer rebuilds the rich host type.
#[non_exhaustive]: this crate is published independently (core-v*) and
Value is its central vocabulary type, so a future variant (e.g. a native
big-integer) must not be a breaking change for downstream crates — like the
sibling public enums (CoreError, FilterOp, …), it requires a _ arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Null
Absence of a value (None / null).
Bool(bool)
Boolean.
Int(i64)
64-bit signed integer.
Float(f64)
64-bit float.
Str(String)
UTF-8 string.
Bytes(Vec<u8>)
Opaque bytes.
List(Vec<Value>)
Ordered list of values.
Map(BTreeMap<String, Value>)
String-keyed map (an item / record).
DateTime(String)
ISO-8601 datetime (carried as its isoformat() string).
Date(String)
ISO-8601 date.
Decimal(String)
Arbitrary-precision decimal (carried as its canonical string).
Uuid(String)
UUID (carried as its canonical hyphenated string).