[−][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<'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 Eq for Disposition
[src]
impl PartialEq<Disposition> for Disposition
[src]
fn eq(&self, other: &Disposition) -> bool
[src]
fn ne(&self, other: &Disposition) -> bool
[src]
impl Clone for Disposition
[src]
fn clone(&self) -> Disposition
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug 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,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Serialize for Disposition
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Disposition
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl EncodableInHeader for Disposition
[src]
fn encode(&self, handle: &mut EncodingWriter) -> Result<(), EncodingError>
[src]
fn boxed_clone(&self) -> Box<dyn EncodableInHeader>
[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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Erased for T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,