pub enum CodeValue {
Undefined,
Json(Value),
BigInt(String),
Binary(Vec<u8>),
}Expand description
A value that preserves JavaScript-only primitives across JSON and RPC.
Variants§
Undefined
JavaScript undefined.
Json(Value)
A regular JSON value.
BigInt(String)
An arbitrary-precision integer represented in base 10.
Binary(Vec<u8>)
Raw bytes.
Trait Implementations§
impl StructuralPartialEq for CodeValue
Auto Trait Implementations§
impl Freeze for CodeValue
impl RefUnwindSafe for CodeValue
impl Send for CodeValue
impl Sync for CodeValue
impl Unpin for CodeValue
impl UnsafeUnpin for CodeValue
impl UnwindSafe for CodeValue
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