pub struct Date(pub HttpDate);
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 hyperx::header::{Date, TypedHeaders};
use std::time::SystemTime;
let mut headers = http::HeaderMap::new();
headers.encode(&Date(SystemTime::now().into()));
Tuple Fields§
§0: HttpDate
Trait Implementations§
Source§impl Header for Date
impl Header for Date
Source§impl StandardHeader for Date
impl StandardHeader for Date
Source§fn http_header_name() -> HeaderName
fn http_header_name() -> HeaderName
The
HeaderName
from the http crate for this header.impl StructuralPartialEq for Date
Auto Trait Implementations§
impl Freeze for Date
impl RefUnwindSafe for Date
impl Send for Date
impl Sync for Date
impl Unpin for Date
impl UnwindSafe for Date
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more