pub struct ContentDisposition;
Expand description

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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more
the component representing the header-field, e.g. Unstructured for Subject
a method returning the header name Read more
I true this will assure that the header is at most one time in a header map. Read more
A function which is meant to be called with a reference to the final header map before encoding the headers. It is meant to be used do some of the contextual validations, like e.g. a From header might return a function which checks if the From header has multiple mailboxes and if so checks if there is a Sender header Read more
Creates a Header instance automatically converting given body to the right type. Read more
Creates a Header instance for this header kind with given body.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.