Struct gmime::AutocryptHeader [−]
pub struct AutocryptHeader(_, _);
An object containing Autocrypt information about a given e-mail address, as derived from a message header.
See https://autocrypt.org/ for details and motivation.
Implements
Methods
impl AutocryptHeader[src]
impl AutocryptHeaderpub fn new() -> AutocryptHeader[src]
pub fn new() -> AutocryptHeaderpub fn new_from_string(string: &str) -> AutocryptHeader[src]
pub fn new_from_string(string: &str) -> AutocryptHeaderCreates a new AutocryptHeader object based on the value of an
Autocrypt: header.
Note that this will not have an effective_date set, since the
effective_date is derived from the Date: line in the same block of
e-mail headers, but cannot be extracted from the raw Autocrypt:
header itself.
string
The raw string value of an Autocrypt header
Returns
a new AutocryptHeader object, or
None on error.
Trait Implementations
impl Clone for AutocryptHeader
impl Clone for AutocryptHeaderfn clone(&self) -> AutocryptHeader
fn clone(&self) -> AutocryptHeaderReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for AutocryptHeader
impl Debug for AutocryptHeaderfn fmt(&self, __arg_0: &mut Formatter) -> Result
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Hash for AutocryptHeader
impl Hash for AutocryptHeaderfn hash<__H: Hasher>(&self, __arg_0: &mut __H)
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl StaticType for AutocryptHeader
impl StaticType for AutocryptHeaderfn static_type() -> Type
fn static_type() -> TypeReturns the type identifier of Self.
impl<T: IsA<Object>> PartialEq<T> for AutocryptHeader
impl<T: IsA<Object>> PartialEq<T> for AutocryptHeaderfn eq(&self, other: &T) -> bool
fn eq(&self, other: &T) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for AutocryptHeader
impl Eq for AutocryptHeaderimpl IsA<Object> for AutocryptHeader
impl IsA<Object> for AutocryptHeaderimpl Default for AutocryptHeader[src]
impl Default for AutocryptHeaderAuto Trait Implementations
impl !Send for AutocryptHeader
impl !Send for AutocryptHeaderimpl !Sync for AutocryptHeader
impl !Sync for AutocryptHeader