Struct jsonrpc_client_http::header::Date [−][src]
pub struct Date(pub HttpDate);
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()));
Trait Implementations
impl PartialEq<Date> for Date
[src]
impl PartialEq<Date> for Date
fn eq(&self, other: &Date) -> bool
[src]
fn eq(&self, other: &Date) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Date) -> bool
[src]
fn ne(&self, other: &Date) -> bool
This method tests for !=
.
impl DerefMut for Date
[src]
impl DerefMut for Date
impl Clone for Date
[src]
impl Clone for Date
fn clone(&self) -> Date
[src]
fn clone(&self) -> Date
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Date
[src]
impl Debug for Date
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Header for Date
[src]
impl Header for Date
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
Returns the name of the header field this belongs to. Read more
fn parse_header(raw: &Raw) -> Result<Date, Error>
[src]
fn parse_header(raw: &Raw) -> Result<Date, Error>
Parse a header from a raw stream of bytes. Read more
fn fmt_header(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt_header(&self, f: &mut Formatter) -> Result<(), Error>
Format a header to outgoing stream. Read more
impl Display for Date
[src]
impl Display for Date
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Deref for Date
[src]
impl Deref for Date