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
sourceimpl<'x> HeaderType<'x>
impl<'x> HeaderType<'x>
pub fn as_content_type(&self) -> Option<&ContentType<'_>>
Trait Implementations
sourceimpl<'x> Clone for HeaderType<'x>
impl<'x> Clone for HeaderType<'x>
sourcefn clone(&self) -> HeaderType<'x>
fn clone(&self) -> HeaderType<'x>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<'x> Debug for HeaderType<'x>
impl<'x> Debug for HeaderType<'x>
sourceimpl<'x> From<Address<'x>> for HeaderType<'x>
impl<'x> From<Address<'x>> for HeaderType<'x>
sourceimpl<'x> From<ContentType<'x>> for HeaderType<'x>
impl<'x> From<ContentType<'x>> for HeaderType<'x>
sourcefn from(value: ContentType<'x>) -> Self
fn from(value: ContentType<'x>) -> Self
Converts to this type from the input type.
sourceimpl<'x> From<Date> for HeaderType<'x>
impl<'x> From<Date> for HeaderType<'x>
sourceimpl<'x> From<MessageId<'x>> for HeaderType<'x>
impl<'x> From<MessageId<'x>> for HeaderType<'x>
sourceimpl<'x> From<Raw<'x>> for HeaderType<'x>
impl<'x> From<Raw<'x>> for HeaderType<'x>
sourceimpl<'x> From<Text<'x>> for HeaderType<'x>
impl<'x> From<Text<'x>> for HeaderType<'x>
sourceimpl<'x> From<URL<'x>> for HeaderType<'x>
impl<'x> From<URL<'x>> for HeaderType<'x>
sourceimpl<'x> Header for HeaderType<'x>
impl<'x> Header for HeaderType<'x>
sourceimpl<'x> Ord for HeaderType<'x>
impl<'x> Ord for HeaderType<'x>
sourcefn cmp(&self, other: &HeaderType<'x>) -> Ordering
fn cmp(&self, other: &HeaderType<'x>) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<'x> PartialEq<HeaderType<'x>> for HeaderType<'x>
impl<'x> PartialEq<HeaderType<'x>> for HeaderType<'x>
sourcefn eq(&self, other: &HeaderType<'x>) -> bool
fn eq(&self, other: &HeaderType<'x>) -> bool
sourceimpl<'x> PartialOrd<HeaderType<'x>> for HeaderType<'x>
impl<'x> PartialOrd<HeaderType<'x>> for HeaderType<'x>
sourcefn partial_cmp(&self, other: &HeaderType<'x>) -> Option<Ordering>
fn partial_cmp(&self, other: &HeaderType<'x>) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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> StructuralEq for HeaderType<'x>
impl<'x> StructuralPartialEq for HeaderType<'x>
Auto Trait Implementations
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
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