pub enum Value {
Bool(bool),
Integer(i64),
Float(f64),
String(String),
OffsetDateTime(String),
LocalDateTime(String),
LocalDate(String),
LocalTime(String),
Table(DmsMap<Value>),
UnorderedTable(DmsHashMap<Value>),
List(Vec<Value>),
}Variants§
Bool(bool)
Integer(i64)
Float(f64)
String(String)
OffsetDateTime(String)
LocalDateTime(String)
LocalDate(String)
LocalTime(String)
Table(DmsMap<Value>)
Ordered table (insertion-order preserving). Built by the default parser entry points.
UnorderedTable(DmsHashMap<Value>)
Unordered table (arbitrary iteration order). Built only by the
*_unordered decoder entry points. encode (full mode) refuses
to round-trip a Document containing this variant; encode_lite
accepts it but emits keys in arbitrary order. See SPEC
§“Unordered tables”.
List(Vec<Value>)
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