pub struct Header<H>where
H: HeaderKind,{ /* private fields */ }
Expand description
Re-export of headers from mail-headers
.
Implementations
sourceimpl<H> Header<H>where
H: HeaderKind,
impl<H> Header<H>where
H: HeaderKind,
pub fn new(body: <H as HeaderKind>::Component) -> Header<H>
pub fn body(&self) -> &<H as HeaderKind>::Component
pub fn body_mut(&mut self) -> &mut <H as HeaderKind>::Component
Trait Implementations
sourceimpl<H> Clone for Header<H>where
H: Clone + HeaderKind,
<H as HeaderKind>::Component: Clone,
impl<H> Clone for Header<H>where
H: Clone + HeaderKind,
<H as HeaderKind>::Component: Clone,
sourceimpl<H> Debug for Header<H>where
H: HeaderKind,
impl<H> Debug for Header<H>where
H: HeaderKind,
sourceimpl<H> Deref for Header<H>where
H: HeaderKind,
impl<H> Deref for Header<H>where
H: HeaderKind,
sourceimpl<H> DerefMut for Header<H>where
H: HeaderKind,
impl<H> DerefMut for Header<H>where
H: HeaderKind,
sourceimpl<H> HasHeaderName for Header<H>where
H: HeaderKind,
impl<H> HasHeaderName for Header<H>where
H: HeaderKind,
fn get_name(&self) -> HeaderName
sourceimpl<H> HeaderObjTrait for Header<H>where
H: HeaderKind,
impl<H> HeaderObjTrait for Header<H>where
H: HeaderKind,
fn name(&self) -> HeaderName
fn is_max_one(&self) -> bool
fn validator(
&self
) -> Option<fn(_: &HeaderMap) -> Result<(), HeaderValidationError>>
fn encode(&self, encoder: &mut EncodingWriter<'_>) -> Result<(), EncodingError>
fn boxed_clone(&self) -> Box<dyn HeaderObjTrait + 'static, Global>
Auto Trait Implementations
impl<H> RefUnwindSafe for Header<H>where
<H as HeaderKind>::Component: RefUnwindSafe,
impl<H> Send for Header<H>
impl<H> Sync for Header<H>
impl<H> Unpin for Header<H>where
<H as HeaderKind>::Component: Unpin,
impl<H> UnwindSafe for Header<H>where
<H as HeaderKind>::Component: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more