Struct email_format::rfc5322::headers::OptionalField
source · [−]pub struct OptionalField {
pub name: FieldName,
pub value: Unstructured,
}
Fields
name: FieldName
value: Unstructured
Trait Implementations
sourceimpl Clone for OptionalField
impl Clone for OptionalField
sourcefn clone(&self) -> OptionalField
fn clone(&self) -> OptionalField
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OptionalField
impl Debug for OptionalField
sourceimpl Display for OptionalField
impl Display for OptionalField
sourceimpl Parsable for OptionalField
impl Parsable for OptionalField
sourceimpl PartialEq<OptionalField> for OptionalField
impl PartialEq<OptionalField> for OptionalField
sourcefn eq(&self, other: &OptionalField) -> bool
fn eq(&self, other: &OptionalField) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OptionalField) -> bool
fn ne(&self, other: &OptionalField) -> bool
This method tests for !=
.
sourceimpl Streamable for OptionalField
impl Streamable for OptionalField
sourceimpl<'a, 'b> TryFrom<(&'a [u8], &'b [u8])> for OptionalField
impl<'a, 'b> TryFrom<(&'a [u8], &'b [u8])> for OptionalField
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
sourcefn try_from(input: (&'a [u8], &'b [u8])) -> Result<OptionalField, ParseError>
fn try_from(input: (&'a [u8], &'b [u8])) -> Result<OptionalField, ParseError>
Performs the conversion.
sourceimpl<'a, 'b> TryFrom<(&'a str, &'b str)> for OptionalField
impl<'a, 'b> TryFrom<(&'a str, &'b str)> for OptionalField
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
sourcefn try_from(input: (&'a str, &'b str)) -> Result<OptionalField, ParseError>
fn try_from(input: (&'a str, &'b str)) -> Result<OptionalField, ParseError>
Performs the conversion.
sourceimpl<'a> TryFrom<(FieldName, Unstructured)> for OptionalField
impl<'a> TryFrom<(FieldName, Unstructured)> for OptionalField
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
sourcefn try_from(
input: (FieldName, Unstructured)
) -> Result<OptionalField, ParseError>
fn try_from(
input: (FieldName, Unstructured)
) -> Result<OptionalField, ParseError>
Performs the conversion.
impl StructuralPartialEq for OptionalField
Auto Trait Implementations
impl RefUnwindSafe for OptionalField
impl Send for OptionalField
impl Sync for OptionalField
impl Unpin for OptionalField
impl UnwindSafe for OptionalField
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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