[][src]Struct http_cache_semantics::RevalidatedPolicy

pub struct RevalidatedPolicy {
    pub policy: CachePolicy,
    pub modified: bool,
    pub matches: bool,
}

New policy and flags

Fields

policy: CachePolicy

New policy with new headers

modified: bool

Boolean indicating whether the response body has changed. If false, then a valid 304 Not Modified response has been received, and you can reuse the old cached response body. If true, you should use new response's body (if present), or make another request to the origin server without any conditional headers (i.e. don't use revalidation_headers() this time) to get the new resource.

matches: bool

This was a request for something else and can't be used?

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.