pub enum ParamsValue {
Null,
Bool(bool),
Int(i64),
Str(String),
Array(Vec<ParamsValue>),
Object(BTreeMap<String, ParamsValue>),
}Expand description
Extension-constraint parameter value under the restricted value model
(SPEC §5.7.1): null, booleans, strings, safe integers (|n| ≤ 2^53−1), and
arrays/objects of these. Floats and non-integer numbers are prohibited;
integers beyond the safe range travel as decimal strings. Object keys are
held in a BTreeMap so canonical serialization emits them in byte-lex
order (RFC 8785) with no extra sort.
Variants§
Trait Implementations§
Source§impl Clone for ParamsValue
impl Clone for ParamsValue
Source§impl Debug for ParamsValue
impl Debug for ParamsValue
Source§impl<'de> Deserialize<'de> for ParamsValue
impl<'de> Deserialize<'de> for ParamsValue
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ParamsValue
impl PartialEq for ParamsValue
Source§impl Serialize for ParamsValue
impl Serialize for ParamsValue
impl StructuralPartialEq for ParamsValue
Auto Trait Implementations§
impl Freeze for ParamsValue
impl RefUnwindSafe for ParamsValue
impl Send for ParamsValue
impl Sync for ParamsValue
impl Unpin for ParamsValue
impl UnsafeUnpin for ParamsValue
impl UnwindSafe for ParamsValue
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