[−][src]Struct mail::Header
Methods
impl<H> Header<H> where
H: HeaderKind, [src]
H: HeaderKind,
pub fn new(body: <H as HeaderKind>::Component) -> Header<H>[src]
pub fn body(&self) -> &<H as HeaderKind>::Component[src]
pub fn body_mut(&mut self) -> &mut <H as HeaderKind>::Component[src]
Trait Implementations
impl<H> HeaderObjTrait for Header<H> where
H: HeaderKind, [src]
H: HeaderKind,
fn name(&self) -> HeaderName[src]
fn is_max_one(&self) -> bool[src]
fn validator(
&self
) -> Option<fn(&HeaderMap) -> Result<(), HeaderValidationError>>[src]
&self
) -> Option<fn(&HeaderMap) -> Result<(), HeaderValidationError>>
fn encode(&self, encoder: &mut EncodingWriter) -> Result<(), EncodingError>[src]
fn boxed_clone(&self) -> Box<dyn HeaderObjTrait + 'static>[src]
impl<H> Deref for Header<H> where
H: HeaderKind, [src]
H: HeaderKind,
type Target = <H as HeaderKind>::Component
The resulting type after dereferencing.
fn deref(&self) -> &<Header<H> as Deref>::Target[src]
impl<H> DerefMut for Header<H> where
H: HeaderKind, [src]
H: HeaderKind,
impl<H> HasHeaderName for Header<H> where
H: HeaderKind, [src]
H: HeaderKind,
fn get_name(&self) -> HeaderName[src]
impl<H> Debug for Header<H> where
H: HeaderKind, [src]
H: HeaderKind,
impl<H> Clone for Header<H> where
H: Clone + HeaderKind,
<H as HeaderKind>::Component: Clone, [src]
H: Clone + HeaderKind,
<H as HeaderKind>::Component: Clone,
Auto Trait Implementations
impl<H> Send for Header<H> where
<H as HeaderKind>::Component: Send,
<H as HeaderKind>::Component: Send,
impl<H> Sync for Header<H> where
<H as HeaderKind>::Component: Sync,
<H as HeaderKind>::Component: Sync,
Blanket Implementations
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> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from)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, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
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<H> HasHeaderName for H where
H: HeaderKind, [src]
H: HeaderKind,
fn get_name(&self) -> HeaderName[src]
impl<F, T> HeaderTryInto for F where
T: HeaderTryFrom<F>, [src]
T: HeaderTryFrom<F>,