pub enum Any {
Cleartext(CleartextSignedMessage),
PublicKey(SignedPublicKey),
SecretKey(SignedSecretKey),
Message(Message),
Signature(StandaloneSignature),
}
Expand description
A flexible representation of what can be represented in an armor file.
Variants§
Cleartext(CleartextSignedMessage)
PublicKey(SignedPublicKey)
SecretKey(SignedSecretKey)
Message(Message)
Signature(StandaloneSignature)
Implementations§
Source§impl Any
impl Any
Sourcepub fn from_armor(bytes: impl Read) -> Result<(Self, Headers)>
pub fn from_armor(bytes: impl Read) -> Result<(Self, Headers)>
Parse armored ascii data.
Sourcepub fn from_string(input: &str) -> Result<(Self, Headers)>
pub fn from_string(input: &str) -> Result<(Self, Headers)>
Parse a single armor encoded composition.
Sourcepub fn from_armor_buf<R: BufRead>(input: R) -> Result<(Self, Headers)>
pub fn from_armor_buf<R: BufRead>(input: R) -> Result<(Self, Headers)>
Parse armored ascii data.
Trait Implementations§
impl Eq for Any
impl StructuralPartialEq for Any
Auto Trait Implementations§
impl Freeze for Any
impl RefUnwindSafe for Any
impl Send for Any
impl Sync for Any
impl Unpin for Any
impl UnwindSafe for Any
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