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 Date
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Date
[src]
impl Clone for Date
fn clone(&self) -> Date
[src]
fn clone(&self) -> Date
Returns 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 Date
impl PartialEq for Date
[src]
impl PartialEq for Date
fn eq(&self, other: &Date) -> bool
[src]
fn eq(&self, other: &Date) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for Date
[src]
impl Eq for Date
impl PartialOrd for Date
[src]
impl PartialOrd for Date
fn 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) -> bool
This 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) -> bool
This 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) -> bool
This 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) -> bool
This 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 Date
fn cmp(&self, other: &Date) -> Ordering
[src]
fn cmp(&self, other: &Date) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for Date
[src]
impl Hash for Date
fn 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 Date
fn from(time: SystemTime) -> Date
[src]
fn from(time: SystemTime) -> Date
Performs the conversion.
impl From<Date> for SystemTime
[src]
impl From<Date> for SystemTime
fn from(date: Date) -> SystemTime
[src]
fn from(date: Date) -> SystemTime
Performs the conversion.