[−][src]Enum mail::MailType
Specifies what kind of mail we want to create.
Variants
A 7-bit us-ascii mail.
A us-ascii mail, but the body can contain 8bit values.
This for example allows sending a mail with an utf-8 formatted body. But be aware that aspects like line length limit still count an the ascii bytes for "\r\n" still count as newlines. So using this for any non-us-ascii compatible encoding (e.g. utf-16) isn't a good idea. Neither is it suited for directly containing resources like images.
A internationalized mail.
Internationalized mails extend multiple grammar parts
to allow any non us-ascii utf-8 code point additionally
to the already allowed utf-8 code points. Internationalized
mails are required for any mail containing a mailbox with
an non us-ascii local/user part (the part before the @
).
They also strongly simplify non ascii utf-8 in all other
places like e.g. the Subject
header.
Implementations
impl MailType
[src]
pub fn is_internationalized(&self) -> bool
[src]
Returns true if the self is equal to Internationalized
pub fn supports_8bit_bodies(&self) -> bool
[src]
Returns true if self is either Internationalized
or Mime8BitEnabled
Trait Implementations
impl Clone for MailType
[src]
impl Copy for MailType
[src]
impl Debug for MailType
[src]
impl Eq for MailType
[src]
impl Hash for MailType
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<MailType> for MailType
[src]
impl StructuralEq for MailType
[src]
impl StructuralPartialEq for MailType
[src]
Auto Trait Implementations
impl RefUnwindSafe for MailType
impl Send for MailType
impl Sync for MailType
impl Unpin for MailType
impl UnwindSafe for MailType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T> HeaderTryFrom<T> for T
[src]
fn try_from(val: T) -> Result<T, ComponentCreationError>
[src]
impl<F, T> HeaderTryInto<T> for F where
T: HeaderTryFrom<F>,
[src]
T: HeaderTryFrom<F>,
fn try_into(self) -> Result<T, ComponentCreationError>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,