Enum pgp::packet::SubpacketData
source · pub enum SubpacketData {
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, BString),
IsPrimary(bool),
Revocable(bool),
EmbeddedSignature(Box<Signature>),
PreferredKeyServer(String),
Notation(Notation),
RevocationKey(RevocationKey),
SignersUserID(BString),
PolicyURI(String),
TrustSignature(u8, u8),
RegularExpression(BString),
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(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(RevocationCode, BString)
IsPrimary(bool)
Revocable(bool)
EmbeddedSignature(Box<Signature>)
PreferredKeyServer(String)
Notation(Notation)
RevocationKey(RevocationKey)
SignersUserID(BString)
PolicyURI(String)
The URI of the policy under which the signature was issued
TrustSignature(u8, u8)
RegularExpression(BString)
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>)
Trait Implementations§
source§impl Clone for SubpacketData
impl Clone for SubpacketData
source§fn clone(&self) -> SubpacketData
fn clone(&self) -> SubpacketData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SubpacketData
impl Debug for SubpacketData
source§impl PartialEq<SubpacketData> for SubpacketData
impl PartialEq<SubpacketData> for SubpacketData
source§fn eq(&self, other: &SubpacketData) -> bool
fn eq(&self, other: &SubpacketData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.