Struct email_format::rfc5322::headers::OrigDate
[−]
[src]
pub struct OrigDate(pub DateTime);
Trait Implementations
impl Debug for OrigDate[src]
impl Clone for OrigDate[src]
fn clone(&self) -> OrigDate
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl PartialEq for OrigDate[src]
fn eq(&self, __arg_0: &OrigDate) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &OrigDate) -> bool
This method tests for !=.
impl Parsable for OrigDate[src]
fn parse(input: &[u8]) -> Result<(Self, &[u8]), ParseError>
Parse the object off of the beginning of the input. If found, returns Some object, and a slice containing the remainer of the input. Read more
impl Streamable for OrigDate[src]
fn stream<W: Write>(&self, w: &mut W) -> Result<usize, IoError>
Serializes and sends the content out to w, returning the number of bytes written.
impl<'a> TryFrom<&'a [u8]> for OrigDate[src]
type Error = ParseError
The type returned in the event of a conversion error.
fn try_from(input: &'a [u8]) -> Result<OrigDate, ParseError>
Performs the conversion.
impl<'a> TryFrom<&'a str> for OrigDate[src]
type Error = ParseError
The type returned in the event of a conversion error.
fn try_from(input: &'a str) -> Result<OrigDate, ParseError>
Performs the conversion.
impl<'a> TryFrom<DateTime> for OrigDate[src]
type Error = ParseError
The type returned in the event of a conversion error.
fn try_from(input: DateTime) -> Result<OrigDate, ParseError>
Performs the conversion.
impl<'a> TryFrom<&'a Tm> for OrigDate[src]
type Error = ParseError
The type returned in the event of a conversion error.
fn try_from(input: &'a Tm) -> Result<OrigDate, ParseError>
Performs the conversion.
impl<'a, Tz: TimeZone> TryFrom<&'a DateTime<Tz>> for OrigDate where
Tz::Offset: Display, [src]
Tz::Offset: Display,
type Error = ParseError
The type returned in the event of a conversion error.
fn try_from(input: &'a DateTime<Tz>) -> Result<OrigDate, ParseError>
Performs the conversion.