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

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(RevocationCode, String), IsPrimary(bool), Revocable(bool), EmbeddedSignature(Box<Signature>), PreferredKeyServer(String), Notation(Notation), RevocationKey(RevocationKey), SignersUserID(String), PolicyURI(String), TrustSignature(u8, u8), RegularExpression(String), ExportableCertification(bool), IssuerFingerprint(KeyVersion, SmallVec<[u8; 20]>), PreferredAeadAlgorithms(SmallVec<[AeadAlgorithm; 2]>), Experimental(u8, SmallVec<[u8; 2]>), Other(u8, Vec<u8>), SignatureTarget(PublicKeyAlgorithm, HashAlgorithm, Vec<u8>),
}

Variants

SignatureCreationTime

The time the signature was made.

Tuple Fields of SignatureCreationTime

0: DateTime<Utc>
SignatureExpirationTime

The time the signature will expire.

Tuple Fields of SignatureExpirationTime

0: DateTime<Utc>
KeyExpirationTime

When the key is going to expire

Tuple Fields of KeyExpirationTime

0: DateTime<Utc>
Issuer

The OpenPGP Key ID of the key issuing the signature.

Tuple Fields of Issuer

0: KeyId
PreferredSymmetricAlgorithms

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

Tuple Fields of PreferredSymmetricAlgorithms

0: SmallVec<[SymmetricKeyAlgorithm; 8]>
PreferredHashAlgorithms

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

Tuple Fields of PreferredHashAlgorithms

0: SmallVec<[HashAlgorithm; 8]>
PreferredCompressionAlgorithms

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

Tuple Fields of PreferredCompressionAlgorithms

0: SmallVec<[CompressionAlgorithm; 8]>
KeyServerPreferences

Tuple Fields of KeyServerPreferences

0: SmallVec<[u8; 4]>
KeyFlags

Tuple Fields of KeyFlags

0: SmallVec<[u8; 1]>
Features

Tuple Fields of Features

0: SmallVec<[u8; 1]>
RevocationReason

Tuple Fields of RevocationReason

0: RevocationCode1: String
IsPrimary

Tuple Fields of IsPrimary

0: bool
Revocable

Tuple Fields of Revocable

0: bool
EmbeddedSignature

Tuple Fields of EmbeddedSignature

0: Box<Signature>
PreferredKeyServer

Tuple Fields of PreferredKeyServer

0: String
Notation

Tuple Fields of Notation

0: Notation
RevocationKey

Tuple Fields of RevocationKey

0: RevocationKey
SignersUserID

Tuple Fields of SignersUserID

0: String
PolicyURI

Tuple Fields of PolicyURI

0: String
TrustSignature

Tuple Fields of TrustSignature

0: u81: u8
RegularExpression

Tuple Fields of RegularExpression

0: String
ExportableCertification

Tuple Fields of ExportableCertification

0: bool
IssuerFingerprint

Tuple Fields of IssuerFingerprint

0: KeyVersion1: SmallVec<[u8; 20]>
PreferredAeadAlgorithms

Tuple Fields of PreferredAeadAlgorithms

0: SmallVec<[AeadAlgorithm; 2]>
Experimental

Tuple Fields of Experimental

0: u81: SmallVec<[u8; 2]>
Other

Tuple Fields of Other

0: u81: Vec<u8>
SignatureTarget

Tuple Fields of SignatureTarget

0: PublicKeyAlgorithm1: HashAlgorithm2: Vec<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

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.