Enum sequoia_openpgp::types::SignatureType [−][src]
#[non_exhaustive] pub enum SignatureType {}Show variants
Binary, Text, Standalone, GenericCertification, PersonaCertification, CasualCertification, PositiveCertification, AttestationKey, SubkeyBinding, PrimaryKeyBinding, DirectKey, KeyRevocation, SubkeyRevocation, CertificationRevocation, Timestamp, Confirmation, Unknown(u8),
Expand description
Signature type as defined in Section 5.2.1 of RFC 4880.
Note: This enum cannot be exhaustively matched to allow future extensions.
Examples
Use SignatureType
to create a timestamp signature:
use sequoia_openpgp as openpgp; use std::time::SystemTime; use openpgp::packet::signature::SignatureBuilder; use openpgp::types::SignatureType; let mut builder = SignatureBuilder::new(SignatureType::Timestamp) .set_signature_creation_time(SystemTime::now())?;
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Signature over a binary document.
Signature over a canonical text document.
Standalone signature.
Generic certification of a User ID and Public-Key packet.
Persona certification of a User ID and Public-Key packet.
Casual certification of a User ID and Public-Key packet.
Positive certification of a User ID and Public-Key packet.
Attestation Key Signature (proposed).
Allows the certificate owner to attest to third party certifications. See Section 5.2.3.30 of RFC 4880bis for details.
Subkey Binding Signature
Primary Key Binding Signature
Signature directly on a key
Key revocation signature
Subkey revocation signature
Certification revocation signature
Timestamp signature.
Third-Party Confirmation signature.
Unknown(u8)
Catchall.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for SignatureType
impl Send for SignatureType
impl Sync for SignatureType
impl Unpin for SignatureType
impl UnwindSafe for SignatureType
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self