[][src]Enum rocket::http::hyper::header::IfMatch

pub enum IfMatch {

If-Match header, defined in RFC7232

The If-Match header field makes the request method conditional on the recipient origin server either having at least one current representation of the target resource, when the field-value is "*", or having a current representation of the target resource that has an entity-tag matching a member of the list of entity-tags provided in the field-value.

An origin server MUST use the strong comparison function when comparing entity-tags for If-Match, since the client intends this precondition to prevent the method from being applied if there have been any changes to the representation data.


If-Match = "*" / 1#entity-tag

Example values


use hyper::header::{Headers, IfMatch};

let mut headers = Headers::new();
use hyper::header::{Headers, IfMatch, EntityTag};

let mut headers = Headers::new();
        EntityTag::new(false, "xyzzy".to_owned()),
        EntityTag::new(false, "foobar".to_owned()),
        EntityTag::new(false, "bazquux".to_owned()),


Any value is a match

Only the listed items are a match

Trait Implementations

impl From<IfMatch> for Header<'static>

impl PartialEq<IfMatch> for IfMatch

impl Clone for IfMatch

Performs copy-assignment from source. Read more

impl Display for IfMatch

impl Debug for IfMatch

impl HeaderFormat for IfMatch

impl Header for IfMatch

Auto Trait Implementations

impl Send for IfMatch

impl Sync for IfMatch

Blanket Implementations

impl<T> From for T

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

impl<T, U> Into for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

impl<T, U> TryFrom for T where
    T: From<U>, 

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized

impl<T> HeaderClone for T where
    T: Sealed, 

impl<T> Typeable for T where
    T: Any

Get the TypeId of this object.

impl<T> IntoCollection for T

impl<T, I> AsResult for T where
    I: Input,