[][src]Struct dkim::dkim::PublicKey

pub struct PublicKey { /* fields omitted */ }

A struct reprensenting a DKIM dns record. (contains the public key and a few optional fields)

Implementations

impl PublicKey[src]

pub fn new(
    sha1_supported: bool,
    sha256_supported: bool,
    subdomains_disallowed: bool,
    testing_domain: bool,
    key_type: String,
    note: Option<String>,
    key: Option<Vec<u8>>
) -> PublicKey
[src]

Creates a new PublicKey with all fields specified.

pub fn load(
    selector: &str,
    domain: &str
) -> Result<PublicKey, PublicKeyParsingError>
[src]

Loads a public key from the DNS.

Trait Implementations

impl Debug for PublicKey[src]

impl<'_> TryFrom<&'_ str> for PublicKey[src]

type Error = PublicKeyParsingError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,