pub enum Value {
Null,
Bool(bool),
Int(i64),
Float(f64),
String(String),
}Expand description
A typed variable value (mirrors the hurl Value subset that crosses the seam).
Serialized as the natural JSON scalar. Deserialization is a hand-written
visitor rather than #[serde(untagged)]: hurl enables
serde_json/arbitrary_precision by default, cargo feature-unifies that into
every workspace build, and under it numbers reach untagged enums as serde_json’s
private number token (which no plain i64/f64 variant matches). The visitor
accepts both encodings — pinned by value_json_forms_round_trip.
Variants§
Null
Absent/null.
Bool(bool)
Boolean.
Int(i64)
Integer number.
Float(f64)
Floating-point number.
String(String)
String.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
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
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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