pub enum ArgValue {
Absent,
Null,
Bool(bool),
Number(f64),
Int(i64),
BigInt(String),
Str(String),
}Expand description
A host scalar accepted as a key argument.
Variants§
Absent
Omitted from the key (JavaScript undefined).
Null
JSON null, spelled null.
Bool(bool)
Spelled true or false.
Number(f64)
Spelled with JavaScript Number formatting.
Int(i64)
Spelled as a decimal integer.
BigInt(String)
An arbitrary-precision integer as decimal text.
Str(String)
Used verbatim, then percent-escaped like every other component.
Trait Implementations§
impl StructuralPartialEq for ArgValue
Auto Trait Implementations§
impl Freeze for ArgValue
impl RefUnwindSafe for ArgValue
impl Send for ArgValue
impl Sync for ArgValue
impl Unpin for ArgValue
impl UnsafeUnpin for ArgValue
impl UnwindSafe for ArgValue
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