[][src]Struct mail_headers::headers::ContentTransferEncoding

pub struct ContentTransferEncoding;

The transfer encoding used to (transfer) encode the body (rfc2045)

This should either be:

  • 7bit: Us-ascii only text, default value if header filed is not present
  • quoted-printable: Data encoded with quoted-printable encoding).
  • base64: Data encoded with base64 encoding.

Through other defined values include:

  • 8bit: Data which is not encoded but still considers lines and line length, i.e. has no more then 998 bytes between two CRLF (or the start/end of data). Bodies of this kind can still be send if the server supports the 8bit mime extension.

  • binary: Data which is not encoded and can be any kind of arbitrary binary data. To send binary bodies the CHUNKING smpt extension (rfc3030) needs to be supported using BDATA instead of DATA to send the content. Note that the extension does not fix the potential but rare problem of accendentall multipart boundary collisions.

Nevertheless this encodings are mainly meant to be used for defining the domain of data in a system before it is encoded.

Trait Implementations

impl HeaderKind for ContentTransferEncoding[src]

type Component = TransferEncoding

the component representing the header-field, e.g. Unstructured for Subject

fn auto_body<H>(body: H) -> Result<Header<Self>, ComponentCreationError> where
    H: HeaderTryInto<Self::Component>, 
[src]

Creates a Header instance automatically converting given body to the right type. Read more

fn body(body: Self::Component) -> Header<Self>[src]

Creates a Header instance for this header kind with given body.

impl MaxOneMarker for ContentTransferEncoding[src]

impl Default for ContentTransferEncoding[src]

impl Clone for ContentTransferEncoding[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for ContentTransferEncoding[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T[src]