[][src]Struct iron::headers::LastModified

pub struct LastModified(pub HttpDate);

Last-Modified header, defined in RFC7232

The Last-Modified header field in a response provides a timestamp indicating the date and time at which the origin server believes the selected representation was last modified, as determined at the conclusion of handling the request.

ABNF

Expires = HTTP-date

Example values

  • Sat, 29 Oct 1994 19:43:31 GMT

Example

// extern crate time;
 
use hyper::header::{Headers, LastModified, HttpDate};
use time::{self, Duration};
 
let mut headers = Headers::new();
headers.set(LastModified(HttpDate(time::now() - Duration::days(1))));

Trait Implementations

impl Display for LastModified[src]

impl DerefMut for LastModified[src]

impl Clone for LastModified[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<LastModified> for LastModified[src]

impl Debug for LastModified[src]

impl Header for LastModified[src]

impl Deref for LastModified[src]

type Target = HttpDate

The resulting type after dereferencing.

impl HeaderFormat for LastModified[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> HeaderClone for T where
    T: Sealed, 
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> UnsafeAny for T where
    T: Any