pub enum Value {
Null,
Str(String),
Date(NaiveDate),
Bool(bool),
Int(i64),
Decimal(Decimal),
Hyperlink {
title: String,
url: String,
},
Link(Link),
Enum {
variant: String,
fields: BTreeMap<String, Value>,
},
List(Vec<Value>),
Struct(BTreeMap<String, Value>),
}Expand description
A decoded field value, shaped by the registry.
Variants§
Null
An explicit None.
Str(String)
Str and Markdown fields both land here; the registry knows which.
Date(NaiveDate)
Bool(bool)
Int(i64)
Decimal(Decimal)
EXACT decimal — travels as a string on the wire (“1250000.00”).
Hyperlink
An external web link: (title: "…", url: "https://…").
Link(Link)
Enum
List(Vec<Value>)
Struct(BTreeMap<String, Value>)
Implementations§
Trait Implementations§
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