Struct pgp::Signature[][src]

pub struct Signature {
    pub config: SignatureConfig,
    pub signed_hash_value: [u8; 2],
    pub signature: Vec<Mpi>,
    // some fields omitted
}
Expand description

Signature Packet https://tools.ietf.org/html/rfc4880.html#section-5.2

Fields

config: SignatureConfigsigned_hash_value: [u8; 2]signature: Vec<Mpi>

Implementations

Returns what kind of signature this is.

Verify this signature.

Verifies a certificate siganture type.

Verifies a key binding.

Verifies a direct key signature or a revocation.

Returns if the signature is a certificate or not.

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

Parses a Signature packet from the given slice.

Performs the conversion.

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.