[−][src]Struct saphir::header::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 hyperx::header::{Headers, Date}; use std::time::SystemTime; let mut headers = Headers::new(); headers.set(Date(SystemTime::now().into()));
Trait Implementations
impl Clone for Date
[src]
fn clone(&self) -> Date
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Deref for Date
[src]
impl Header for Date
[src]
fn header_name() -> &'static str
[src]
fn parse_header<'a, T>(raw: &'a T) -> Result<Date, Error> where
T: RawLike<'a>,
[src]
T: RawLike<'a>,
fn fmt_header(&self, f: &mut Formatter) -> Result<(), Error>
[src]
impl DerefMut for Date
[src]
impl PartialEq<Date> for Date
[src]
impl Display for Date
[src]
impl Debug for Date
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,