pub enum Value {
Bytes(Zeroizing<Vec<u8>>),
String(String),
Integer(i64),
Boolean(bool),
Null,
}Expand description
A runtime value in the expression system.
Debug shows a byte value by its length, for the reason given on
Bytes: an error message or a log line that prints a
value must not print what it holds.
Variants§
Bytes(Zeroizing<Vec<u8>>)
Raw binary data (computation core).
Wiped when dropped, and never printed. A value may be a copy of opened content or key material, and the expression engine cannot tell which of its inputs are, so every byte value is treated as if it were.
String(String)
UTF-8 text string
Integer(i64)
Integer value
Boolean(bool)
Boolean value
Null
Null/missing value
Implementations§
Source§impl Value
impl Value
Trait Implementations§
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