Enum bc_envelope::base::envelope::EnvelopeCase
source · pub enum EnvelopeCase {
Node {
subject: Envelope,
assertions: Vec<Envelope>,
digest: Digest,
},
Leaf {
cbor: CBOR,
digest: Digest,
},
Wrapped {
envelope: Envelope,
digest: Digest,
},
Assertion(Assertion),
Elided(Digest),
KnownValue {
value: KnownValue,
digest: Digest,
},
Encrypted(EncryptedMessage),
Compressed(Compressed),
}Variants§
Node
Represents an envelope with one or more assertions.
Leaf
Represents an envelope with encoded CBOR data.
Wrapped
Represents an envelope that wraps another envelope.
Assertion(Assertion)
Represents an assertion.
An assertion is a predicate-object pair, each of which is itself an Envelope.
Elided(Digest)
Represents an elided envelope.
KnownValue
Represents a value from a namespace of unsigned integers.
Encrypted(EncryptedMessage)
Represents an encrypted envelope.
Compressed(Compressed)
Represents a compressed envelope.
Trait Implementations§
source§impl Debug for EnvelopeCase
impl Debug for EnvelopeCase
source§impl From<EnvelopeCase> for Envelope
impl From<EnvelopeCase> for Envelope
source§fn from(case: EnvelopeCase) -> Self
fn from(case: EnvelopeCase) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for EnvelopeCase
impl !Send for EnvelopeCase
impl !Sync for EnvelopeCase
impl Unpin for EnvelopeCase
impl UnwindSafe for EnvelopeCase
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