pub enum YsonNode {
Entity,
Boolean(bool),
Int64(i64),
Uint64(u64),
Double(f64),
String(Vec<u8>),
List(Vec<YsonValue>),
Map(BTreeMap<Vec<u8>, YsonValue>),
}Expand description
Represents the data variants available in the YSON data model.
Variants§
Entity
An empty value, represented by # in text format.
Boolean(bool)
A boolean value (%true or %false).
Int64(i64)
A signed 64-bit integer.
Uint64(u64)
An unsigned 64-bit integer, followed by u in text format (e.g., 42u).
Double(f64)
A double-precision floating point number.
String(Vec<u8>)
A byte string.
List(Vec<YsonValue>)
A list of YSON values, enclosed in [...].
Map(BTreeMap<Vec<u8>, YsonValue>)
A map of byte strings to YSON values, enclosed in {...}.
Trait Implementations§
impl StructuralPartialEq for YsonNode
Auto Trait Implementations§
impl Freeze for YsonNode
impl RefUnwindSafe for YsonNode
impl Send for YsonNode
impl Sync for YsonNode
impl Unpin for YsonNode
impl UnsafeUnpin for YsonNode
impl UnwindSafe for YsonNode
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