pub enum LeafType {
Str,
Int,
Float,
Bool,
Bytes,
Time,
Comment,
}Expand description
The datatype tag carried in type:.
A closed enum, so adding a variant is a compile error at every match — which
is the point. Upstream’s default: arm returns a runtime error instead.
Variants§
Str
Int
Float
Bool
Bytes
Decrypt-only in practice. Cipher.Encrypt has no []byte arm, so sops
itself never writes type:bytes; only Python-era files carry it. We
read it and never emit it, which is why there is no Plaintext variant
that renders back to it.
Time
Comment
Implementations§
Trait Implementations§
impl Copy for LeafType
impl Eq for LeafType
impl StructuralPartialEq for LeafType
Auto Trait Implementations§
impl Freeze for LeafType
impl RefUnwindSafe for LeafType
impl Send for LeafType
impl Sync for LeafType
impl Unpin for LeafType
impl UnsafeUnpin for LeafType
impl UnwindSafe for LeafType
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