pub enum AnyValue {
RustBuffer(ToJsBuffer),
V8Buffer(JsBuffer),
String(String),
Number(f64),
BigInt(BigInt),
Bool(bool),
}
Expand description
An untagged enum type that can be any of number, string, bool, bigint, or buffer.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AnyValue
impl<'de> Deserialize<'de> for AnyValue
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for AnyValue
impl !RefUnwindSafe for AnyValue
impl Send for AnyValue
impl !Sync for AnyValue
impl Unpin for AnyValue
impl UnwindSafe for AnyValue
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