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 hyper::header::{Headers, Date};
use std::time::SystemTime;
let mut headers = Headers::new();
headers.set(Date(SystemTime::now().into()));
Tuple Fields§
§0: HttpDate
Trait Implementations§
Source§impl Header for Date
impl Header for Date
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)