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 AutocryptHeader
pub fn new() -> AutocryptHeader
[src]
pub fn new() -> AutocryptHeader
pub fn new_from_string(string: &str) -> AutocryptHeader
[src]
pub fn new_from_string(string: &str) -> AutocryptHeader
Creates 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 AutocryptHeader
fn clone(&self) -> AutocryptHeader
fn clone(&self) -> AutocryptHeader
Returns 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 AutocryptHeader
fn fmt(&self, __arg_0: &mut Formatter) -> Result
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for AutocryptHeader
impl Hash for AutocryptHeader
fn 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 AutocryptHeader
fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for AutocryptHeader
impl<T: IsA<Object>> PartialEq<T> for AutocryptHeader
fn eq(&self, other: &T) -> bool
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for AutocryptHeader
impl Eq for AutocryptHeader
impl IsA<Object> for AutocryptHeader
impl IsA<Object> for AutocryptHeader
impl Default for AutocryptHeader
[src]
impl Default for AutocryptHeader
Auto Trait Implementations
impl !Send for AutocryptHeader
impl !Send for AutocryptHeader
impl !Sync for AutocryptHeader
impl !Sync for AutocryptHeader