[][src]Struct mail_headers::header_components::Disposition

pub struct Disposition { /* fields omitted */ }

Disposition Component mainly used for the Content-Disposition header (rfc2183)

Methods

impl Disposition[src]

pub fn inline() -> Self[src]

Create a inline disposition with default parameters.

pub fn attachment() -> Self[src]

Create a attachment disposition with default parameters.

pub fn new(kind: DispositionKind, file_meta: FileMeta) -> Self[src]

Create a new disposition with given parameters.

pub fn kind(&self) -> DispositionKind[src]

Return which kind of disposition this represents.

pub fn file_meta(&self) -> &FileMeta[src]

Returns the parameters associated with the disposition.

pub fn file_meta_mut(&mut self) -> &mut FileMeta[src]

Returns a mutable reference to the parameters associated with the disposition.

Trait Implementations

impl Clone for Disposition[src]

impl Debug for Disposition[src]

impl EncodableInHeader for Disposition[src]

impl Eq for Disposition[src]

impl Hash for Disposition[src]

impl<'a> HeaderTryFrom<&'a str> for Disposition[src]

This try from is for usability only, it is generally recommendet to use Disposition::inline()/::attachment() as it is type safe / compiler time checked, while this one isn't

impl PartialEq<Disposition> for Disposition[src]

impl StructuralEq for Disposition[src]

impl StructuralPartialEq for Disposition[src]

Auto Trait Implementations

impl RefUnwindSafe for Disposition

impl Send for Disposition

impl Sync for Disposition

impl Unpin for Disposition

impl UnwindSafe for Disposition

Blanket Implementations

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

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

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.