pub enum HeaderType<'x> {
Address(Address<'x>),
Date(Date),
MessageId(MessageId<'x>),
Raw(Raw<'x>),
Text(Text<'x>),
URL(URL<'x>),
ContentType(ContentType<'x>),
}
Variants§
Address(Address<'x>)
Date(Date)
MessageId(MessageId<'x>)
Raw(Raw<'x>)
Text(Text<'x>)
URL(URL<'x>)
ContentType(ContentType<'x>)
Implementations§
Source§impl HeaderType<'_>
impl HeaderType<'_>
pub fn as_content_type(&self) -> Option<&ContentType<'_>>
Trait Implementations§
Source§impl<'x> Clone for HeaderType<'x>
impl<'x> Clone for HeaderType<'x>
Source§fn clone(&self) -> HeaderType<'x>
fn clone(&self) -> HeaderType<'x>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'x> Debug for HeaderType<'x>
impl<'x> Debug for HeaderType<'x>
Source§impl<'x> From<Address<'x>> for HeaderType<'x>
impl<'x> From<Address<'x>> for HeaderType<'x>
Source§impl<'x> From<ContentType<'x>> for HeaderType<'x>
impl<'x> From<ContentType<'x>> for HeaderType<'x>
Source§fn from(value: ContentType<'x>) -> Self
fn from(value: ContentType<'x>) -> Self
Converts to this type from the input type.
Source§impl From<Date> for HeaderType<'_>
impl From<Date> for HeaderType<'_>
Source§impl<'x> From<MessageId<'x>> for HeaderType<'x>
impl<'x> From<MessageId<'x>> for HeaderType<'x>
Source§impl<'x> From<Raw<'x>> for HeaderType<'x>
impl<'x> From<Raw<'x>> for HeaderType<'x>
Source§impl<'x> From<Text<'x>> for HeaderType<'x>
impl<'x> From<Text<'x>> for HeaderType<'x>
Source§impl<'x> From<URL<'x>> for HeaderType<'x>
impl<'x> From<URL<'x>> for HeaderType<'x>
Source§impl Header for HeaderType<'_>
impl Header for HeaderType<'_>
Source§impl<'x> Ord for HeaderType<'x>
impl<'x> Ord for HeaderType<'x>
Source§fn cmp(&self, other: &HeaderType<'x>) -> Ordering
fn cmp(&self, other: &HeaderType<'x>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'x> PartialEq for HeaderType<'x>
impl<'x> PartialEq for HeaderType<'x>
Source§impl<'x> PartialOrd for HeaderType<'x>
impl<'x> PartialOrd for HeaderType<'x>
impl<'x> Eq for HeaderType<'x>
impl<'x> StructuralPartialEq for HeaderType<'x>
Auto Trait Implementations§
impl<'x> Freeze for HeaderType<'x>
impl<'x> RefUnwindSafe for HeaderType<'x>
impl<'x> Send for HeaderType<'x>
impl<'x> Sync for HeaderType<'x>
impl<'x> Unpin for HeaderType<'x>
impl<'x> UnwindSafe for HeaderType<'x>
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