pub enum ContentTransferEncoding {
SevenBit,
EightBit,
QuotedPrintable,
Base64,
}Expand description
MIME Content-Transfer-Encoding choices the builder picks from.
Variants§
SevenBit
7bit — body is pure ASCII with every line ≤ 998 chars (RFC
5322 §2.1.1) and no NUL bytes. Body is emitted verbatim.
EightBit
8bit — body has ≥1 high-bit byte but every line is still
short and the body is text-shaped. Emitted verbatim. Use
requires the receiving MTA to support 8BITMIME — most do,
but for compatibility callers can prefer QuotedPrintable.
QuotedPrintable
quoted-printable — body has high-bit bytes or long lines
and is text-shaped. Output is wrapped at 76 chars per RFC
2045 §6.7.
Base64
base64 — body looks binary (high non-printable density or
embedded NUL). Output is 76-char wrapped per RFC 2045 §6.8.
Implementations§
Trait Implementations§
Source§impl Clone for ContentTransferEncoding
impl Clone for ContentTransferEncoding
Source§fn clone(&self) -> ContentTransferEncoding
fn clone(&self) -> ContentTransferEncoding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContentTransferEncoding
impl Debug for ContentTransferEncoding
Source§impl PartialEq for ContentTransferEncoding
impl PartialEq for ContentTransferEncoding
Source§fn eq(&self, other: &ContentTransferEncoding) -> bool
fn eq(&self, other: &ContentTransferEncoding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ContentTransferEncoding
impl Eq for ContentTransferEncoding
impl StructuralPartialEq for ContentTransferEncoding
Auto Trait Implementations§
impl Freeze for ContentTransferEncoding
impl RefUnwindSafe for ContentTransferEncoding
impl Send for ContentTransferEncoding
impl Sync for ContentTransferEncoding
impl Unpin for ContentTransferEncoding
impl UnsafeUnpin for ContentTransferEncoding
impl UnwindSafe for ContentTransferEncoding
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more