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 Freeze for EnvelopeCase
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more