Struct headers_ext::Date [−][src]
pub struct Date(_);
Date header, defined in RFC7231
The Date header field represents the date and time at which the
message was originated.
ABNF
Date = HTTP-date
Example values
Tue, 15 Nov 1994 08:12:31 GMT
Example
use headers::Date; use std::time::SystemTime; let date = Date::from(SystemTime::now());
Trait Implementations
impl Debug for Date[src]
impl Debug for Datefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Date[src]
impl Clone for Datefn clone(&self) -> Date[src]
fn clone(&self) -> DateReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for Date[src]
impl Copy for Dateimpl PartialEq for Date[src]
impl PartialEq for Datefn eq(&self, other: &Date) -> bool[src]
fn eq(&self, other: &Date) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Date) -> bool[src]
fn ne(&self, other: &Date) -> boolThis method tests for !=.
impl Eq for Date[src]
impl Eq for Dateimpl PartialOrd for Date[src]
impl PartialOrd for Datefn partial_cmp(&self, other: &Date) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Date) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Date) -> bool[src]
fn lt(&self, other: &Date) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Date) -> bool[src]
fn le(&self, other: &Date) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Date) -> bool[src]
fn gt(&self, other: &Date) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Date) -> bool[src]
fn ge(&self, other: &Date) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for Date[src]
impl Ord for Datefn cmp(&self, other: &Date) -> Ordering[src]
fn cmp(&self, other: &Date) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for Date[src]
impl Hash for Datefn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl From<SystemTime> for Date[src]
impl From<SystemTime> for Datefn from(time: SystemTime) -> Date[src]
fn from(time: SystemTime) -> DatePerforms the conversion.
impl From<Date> for SystemTime[src]
impl From<Date> for SystemTimefn from(date: Date) -> SystemTime[src]
fn from(date: Date) -> SystemTimePerforms the conversion.