[][src]Struct mail_headers::headers::ContentDisposition

pub struct ContentDisposition;

Defines the disposition of a multipart part it is used on (rfc2183)

This is meant to be used as a header for a multipart body part, which was created from a resource, mainly a file.

Examples are attachments like images, etc.

Possible Dispositions are:

  • Inline
  • Attachment

Additional it is used to provide following information as parameters:

  • filename: the file name associated with the resource this body is based on
  • creation-date: when the resource this body is based on was created
  • modification-date: when the resource this body is based on was last modified
  • read-date: when the resource this body is based on was read (to create the body)
  • size: the size this resource should have, note that Content-Size is NOT a mail related header but specific to http.

Trait Implementations

impl HeaderKind for ContentDisposition[src]

type Component = Disposition

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 ContentDisposition[src]

impl Default for ContentDisposition[src]

impl Clone for ContentDisposition[src]

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

Performs copy-assignment from source. Read more

impl Copy for ContentDisposition[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<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> Any for T where
    T: 'static + ?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> Erased for T[src]