pub enum Subpacket {
Show 27 variants 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>)

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.