Enum mail_builder::headers::HeaderType
source · 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<'x> HeaderType<'x>
impl<'x> HeaderType<'x>
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 copy 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<'x> From<Date> for HeaderType<'x>
impl<'x> From<Date> for HeaderType<'x>
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<'x> Header for HeaderType<'x>
impl<'x> Header for HeaderType<'x>
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§fn eq(&self, other: &HeaderType<'x>) -> bool
fn eq(&self, other: &HeaderType<'x>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'x> PartialOrd for HeaderType<'x>
impl<'x> PartialOrd for HeaderType<'x>
source§fn partial_cmp(&self, other: &HeaderType<'x>) -> Option<Ordering>
fn partial_cmp(&self, other: &HeaderType<'x>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)