[][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<'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 Clone for Disposition[src]

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

Performs copy-assignment from source. Read more

impl Eq for Disposition[src]

impl PartialEq<Disposition> for Disposition[src]

impl Hash for Disposition[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Disposition[src]

impl EncodableInHeader for Disposition[src]

Auto Trait Implementations

impl Send for Disposition

impl Sync for Disposition

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]