pub struct Header<H>where
H: HeaderKind,{ /* private fields */ }
Expand description
Re-export of headers from mail-headers
.
Implementations§
Source§impl<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§
Source§impl<H> Debug for Header<H>where
H: HeaderKind,
impl<H> Debug for Header<H>where
H: HeaderKind,
Source§impl<H> Deref for Header<H>where
H: HeaderKind,
impl<H> Deref for Header<H>where
H: HeaderKind,
Source§impl<H> DerefMut for Header<H>where
H: HeaderKind,
impl<H> DerefMut for Header<H>where
H: HeaderKind,
Source§impl<H> HasHeaderName for Header<H>where
H: HeaderKind,
impl<H> HasHeaderName for Header<H>where
H: HeaderKind,
fn get_name(&self) -> HeaderName
Source§impl<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>
Auto Trait Implementations§
impl<H> Freeze for Header<H>
impl<H> RefUnwindSafe for Header<H>
impl<H> Send for Header<H>
impl<H> Sync for Header<H>
impl<H> Unpin for Header<H>
impl<H> UnwindSafe for Header<H>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more