pub enum Value {
Undefined,
Null,
Bool(bool),
Number(f64),
String(String),
Array(Vec<Value>),
Object(Vec<(String, Value)>),
}Expand description
A datamodel-independent value, used for event data, snapshots and traces.
Variants§
Undefined
No value (undefined in ECMAScript).
Null
null.
Bool(bool)
A boolean.
Number(f64)
A number.
String(String)
A string.
Array(Vec<Value>)
An ordered array.
Object(Vec<(String, Value)>)
An object with keys in insertion order.
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Forget for Value
impl Freeze for Value
impl Move 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