[−][src]Struct mail_headers::headers::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 oncreation-date: when the resource this body is based on was createdmodification-date: when the resource this body is based on was last modifiedread-date: when the resource this body is based on was read (to create the body)size: the size this resource should have, note thatContent-Sizeis NOT a mail related header but specific to http.
Trait Implementations
impl Clone for ContentDisposition[src]
fn clone(&self) -> ContentDisposition[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for ContentDisposition[src]
impl Default for ContentDisposition[src]
fn default() -> ContentDisposition[src]
impl HeaderKind for ContentDisposition[src]
type Component = Disposition
the component representing the header-field, e.g. Unstructured for Subject
fn name() -> HeaderName[src]
const MAX_ONE: bool[src]
const VALIDATOR: Option<HeaderMapValidator>[src]
fn auto_body<H>(body: H) -> Result<Header<Self>, ComponentCreationError> where
H: HeaderTryInto<Self::Component>, [src]
H: HeaderTryInto<Self::Component>,
fn body(body: Self::Component) -> Header<Self>[src]
impl MaxOneMarker for ContentDisposition[src]
Auto Trait Implementations
impl RefUnwindSafe for ContentDisposition
impl Send for ContentDisposition
impl Sync for ContentDisposition
impl Unpin for ContentDisposition
impl UnwindSafe for ContentDisposition
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[src]
impl<T> From<T> for T[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>,