Struct autocrypt::Header
[−]
[src]
pub struct Header { pub addr: String, pub typ: Option<KeyType>, pub prefer_encrypt: Option<EncryptPreference>, pub keydata: String, }
Represents an Autocrypt Header
Fields
addr: String
The single recipient email address this header is valid for.
typ: Option<KeyType>
Key type
prefer_encrypt: Option<EncryptPreference>
Encryption preference,
keydata: String
Public Key, encoded in Base64
Methods
impl Header
[src]
fn new(
addr: String,
typ: Option<KeyType>,
pref: Option<EncryptPreference>,
key: String
) -> Header
[src]
addr: String,
typ: Option<KeyType>,
pref: Option<EncryptPreference>,
key: String
) -> Header
Trait Implementations
impl PartialEq for Header
[src]
fn eq(&self, __arg_0: &Header) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Header) -> bool
[src]
This method tests for !=
.
impl Eq for Header
[src]
impl Debug for Header
[src]
impl Clone for Header
[src]
fn clone(&self) -> Header
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Display for Header
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more