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
// extern crate time;
use hyper::header::{Headers, Date, HttpDate};
use time;
let mut headers = Headers::new();
headers.set(Date(HttpDate(time::now())));
Tuple Fields§
§0: HttpDate
Trait Implementations§
source§impl HeaderFormat for Date
impl HeaderFormat 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
)