[−][src]Struct mail_headers::header_components::Disposition
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]
fn clone(&self) -> Disposition[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for Disposition[src]
impl EncodableInHeader for Disposition[src]
fn encode(&self, handle: &mut EncodingWriter) -> Result<(), EncodingError>[src]
fn boxed_clone(&self) -> Box<dyn EncodableInHeader>[src]
impl Eq for Disposition[src]
impl Hash for Disposition[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
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
fn try_from(text: &'a str) -> Result<Self, ComponentCreationError>[src]
impl PartialEq<Disposition> for Disposition[src]
fn eq(&self, other: &Disposition) -> bool[src]
fn ne(&self, other: &Disposition) -> bool[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]
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>,