pub enum Value {
Null,
Bool(bool),
Int(i64),
Float(f64),
String(String),
DurationMs(u64),
Quantity(f64, Unit),
Array(Vec<Value>),
Table(IndexMap<String, Value>),
Secret(String),
}Variants§
Null
Bool(bool)
Int(i64)
Float(f64)
String(String)
DurationMs(u64)
Quantity(f64, Unit)
Array(Vec<Value>)
Table(IndexMap<String, Value>)
Secret(String)
Implementations§
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
Source§impl Serialize for Value
impl Serialize for Value
Source§fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>
Redacting serializer (spec/secrets.md §3): serializing a Value
directly (serde_json::to_string and friends) can never emit
secret material — secrets become the export marker, mirroring
convert::value_to_json (kept in sync by hand; ir cannot depend
on convert). Deserialization stays derived: the input direction
cannot leak.
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