#[non_exhaustive]pub enum DeterministicCborValue {
Null,
Bool(bool),
Integer(DeterministicCborInteger),
Text(String),
Bytes(Vec<u8>),
Array(Vec<DeterministicCborValue>),
Map(Vec<DeterministicCborMapEntry>),
}Expand description
Value domain supported by deterministic generic CBOR.
Construction alone does not enforce aggregate size, node, nesting, duplicate-key, or map-order rules. Boundary adapters must validate untrusted transport data before constructing this recursive owner, and the semantic encoder must validate caller-constructed values before allocating output.
All owned payloads and container backing allocations are treated as potentially sensitive and recursively zeroized on drop. Debug output is structural and redacted.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Null
CBOR null.
Bool(bool)
CBOR boolean.
Integer(DeterministicCborInteger)
Supported deterministic-CBOR integer.
Text(String)
UTF-8 text string.
Bytes(Vec<u8>)
Byte string.
Array(Vec<DeterministicCborValue>)
Array of deterministic-CBOR values.
Map(Vec<DeterministicCborMapEntry>)
Map represented as an ordered entry list.
Trait Implementations§
Source§impl Debug for DeterministicCborValue
impl Debug for DeterministicCborValue
Source§impl Drop for DeterministicCborValue
impl Drop for DeterministicCborValue
impl ZeroizeOnDrop for DeterministicCborValue
Auto Trait Implementations§
impl Freeze for DeterministicCborValue
impl RefUnwindSafe for DeterministicCborValue
impl Send for DeterministicCborValue
impl Sync for DeterministicCborValue
impl Unpin for DeterministicCborValue
impl UnsafeUnpin for DeterministicCborValue
impl UnwindSafe for DeterministicCborValue
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