pub enum Value {
Null,
Bool(bool),
Int(i64),
String(String),
Bytes(Vec<u8>),
List(Vec<Value>),
Map(BTreeMap<String, Value>),
}Expand description
Core Strata value type. This is the in-memory representation used by encoders/decoders. Integer semantics (Northstar v1):
- All integers are signed 64-bit (i64)
- No floats, no implicit coercions
- Encoded using canonical SLEB128
- Cross-language implementations MUST map to i64 exactly
Variants§
Null
Bool(bool)
Int(i64)
String(String)
Bytes(Vec<u8>)
List(Vec<Value>)
Map(BTreeMap<String, Value>)
Trait Implementations§
impl Eq for Value
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 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