Struct headers_accept_encoding::Date
source · pub struct Date(_);
Expand description
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§
source§impl From<Date> for SystemTime
impl From<Date> for SystemTime
source§fn from(date: Date) -> SystemTime
fn from(date: Date) -> SystemTime
Converts to this type from the input type.
source§impl From<SystemTime> for Date
impl From<SystemTime> for Date
source§fn from(time: SystemTime) -> Date
fn from(time: SystemTime) -> Date
Converts to this type from the input type.
source§impl Header for Date
impl Header for Date
source§impl Ord for Date
impl Ord for Date
source§impl PartialEq<Date> for Date
impl PartialEq<Date> for Date
source§impl PartialOrd<Date> for Date
impl PartialOrd<Date> for Date
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 more