[][src]Struct pgp::packet::config::SignatureConfigBuilder

pub struct SignatureConfigBuilder { /* fields omitted */ }

Builder for SignatureConfig.

Methods

impl SignatureConfigBuilder[src]

pub fn version(&mut self, value: SignatureVersion) -> &mut Self[src]

pub fn typ(&mut self, value: SignatureType) -> &mut Self[src]

pub fn pub_alg(&mut self, value: PublicKeyAlgorithm) -> &mut Self[src]

pub fn hash_alg(&mut self, value: HashAlgorithm) -> &mut Self[src]

pub fn unhashed_subpackets(&mut self, value: Vec<Subpacket>) -> &mut Self[src]

pub fn hashed_subpackets(&mut self, value: Vec<Subpacket>) -> &mut Self[src]

pub fn created(&mut self, value: Option<DateTime<Utc>>) -> &mut Self[src]

pub fn issuer(&mut self, value: Option<KeyId>) -> &mut Self[src]

pub fn build(&self) -> Result<SignatureConfig, String>[src]

Builds a new SignatureConfig.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for SignatureConfigBuilder[src]

impl Default for SignatureConfigBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized
[src]

impl<T> InitializableFromZeroed for T where
    T: Default
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Err = <U as TryFrom<T>>::Err