pub enum Entity {
Int(i64),
Float(f64),
String(String),
Bool(bool),
List(Vec<Entity>),
Map(HashMap<String, Entity>),
Null,
}Expand description
The fundamental data-holding unit.
Variants§
Int(i64)
64-bit signed integer.
Float(f64)
IEEE-754 double-precision float.
String(String)
UTF-8 string.
Bool(bool)
Boolean.
List(Vec<Entity>)
Ordered, heterogeneous list of entities.
Map(HashMap<String, Entity>)
String-keyed map of entities.
Null
Absence of value.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Entity
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnsafeUnpin for Entity
impl UnwindSafe for Entity
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