pub enum Value<K: Key> {
Null,
Bool(bool),
I64(i64),
U64(u64),
F64(f64),
Str(FastStr),
StaticStr(&'static str),
Array(Box<SmallVec<[Value<K>; 8]>>),
Object(Box<WideEvent<K>>),
}Expand description
A JSON value stored in a wide event.
All variants are safe to construct, clone, and drop — the compiler
handles destructors automatically. No unsafe is required anywhere
in this type.
Variants§
Null
Bool(bool)
I64(i64)
U64(u64)
F64(f64)
Str(FastStr)
StaticStr(&'static str)
Array(Box<SmallVec<[Value<K>; 8]>>)
Object(Box<WideEvent<K>>)
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for Value<K>
impl<K> RefUnwindSafe for Value<K>where
K: RefUnwindSafe,
impl<K> Send for Value<K>where
K: Send,
impl<K> Sync for Value<K>where
K: Sync,
impl<K> Unpin for Value<K>
impl<K> UnsafeUnpin for Value<K>
impl<K> UnwindSafe for Value<K>where
K: RefUnwindSafe + UnwindSafe,
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