[][src]Enum pgp::packet::Subpacket

pub enum Subpacket {
    SignatureCreationTime(DateTime<Utc>),
    SignatureExpirationTime(DateTime<Utc>),
    KeyExpirationTime(DateTime<Utc>),
    Issuer(KeyId),
    PreferredSymmetricAlgorithms(SmallVec<[SymmetricKeyAlgorithm; 8]>),
    PreferredHashAlgorithms(SmallVec<[HashAlgorithm; 8]>),
    PreferredCompressionAlgorithms(SmallVec<[CompressionAlgorithm; 8]>),
    KeyServerPreferences(SmallVec<[u8; 4]>),
    KeyFlags(SmallVec<[u8; 1]>),
    Features(SmallVec<[u8; 1]>),
    RevocationReason(RevocationCodeString),
    IsPrimary(bool),
    Revocable(bool),
    EmbeddedSignature(Box<Signature>),
    PreferredKeyServer(String),
    Notation(Notation),
    RevocationKey(RevocationKey),
    SignersUserID(String),
    PolicyURI(String),
    TrustSignature(u8u8),
    RegularExpression(String),
    ExportableCertification(bool),
    IssuerFingerprint(KeyVersionSmallVec<[u8; 20]>),
    PreferredAeadAlgorithms(SmallVec<[AeadAlgorithm; 2]>),
    Experimental(u8SmallVec<[u8; 2]>),
    Other(u8Vec<u8>),
    SignatureTarget(PublicKeyAlgorithmHashAlgorithmVec<u8>),
}

Variants

SignatureCreationTime(DateTime<Utc>)

The time the signature was made.

SignatureExpirationTime(DateTime<Utc>)

The time the signature will expire.

KeyExpirationTime(DateTime<Utc>)

When the key is going to expire

Issuer(KeyId)

The OpenPGP Key ID of the key issuing the signature.

PreferredSymmetricAlgorithms(SmallVec<[SymmetricKeyAlgorithm; 8]>)

List of symmetric algorithms that indicate which algorithms the key holder prefers to use.

PreferredHashAlgorithms(SmallVec<[HashAlgorithm; 8]>)

List of hash algorithms that indicate which algorithms the key holder prefers to use.

PreferredCompressionAlgorithms(SmallVec<[CompressionAlgorithm; 8]>)

List of compression algorithms that indicate which algorithms the key holder prefers to use.

KeyServerPreferences(SmallVec<[u8; 4]>)
KeyFlags(SmallVec<[u8; 1]>)
Features(SmallVec<[u8; 1]>)
RevocationReason(RevocationCodeString)
IsPrimary(bool)
Revocable(bool)
EmbeddedSignature(Box<Signature>)
PreferredKeyServer(String)
Notation(Notation)
RevocationKey(RevocationKey)
SignersUserID(String)
PolicyURI(String)
TrustSignature(u8u8)
RegularExpression(String)
ExportableCertification(bool)
IssuerFingerprint(KeyVersionSmallVec<[u8; 20]>)
PreferredAeadAlgorithms(SmallVec<[AeadAlgorithm; 2]>)
Experimental(u8SmallVec<[u8; 2]>)
Other(u8Vec<u8>)
SignatureTarget(PublicKeyAlgorithmHashAlgorithmVec<u8>)

Methods

impl Subpacket[src]

pub fn typ(&self) -> SubpacketType[src]

Trait Implementations

impl Serialize for Subpacket[src]

impl Clone for Subpacket[src]

impl Eq for Subpacket[src]

impl PartialEq<Subpacket> for Subpacket[src]

impl Debug for Subpacket[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Err = <U as TryFrom<T>>::Err