Struct hyper::header::common::etag::Etag [-]  [+] [src]

pub struct Etag {
    pub weak: bool,
    pub tag: String,
}

The Etag header.

An Etag consists of a string enclosed by two literal double quotes. Preceding the first double quote is an optional weakness indicator, which always looks like this: W/ See also: https://tools.ietf.org/html/rfc7232#section-2.3

Fields

weak

Weakness indicator for the tag

tag

The opaque string in between the DQUOTEs

Trait Implementations

impl Header for Etag

fn header_name(_: Option<Etag>) -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Option<Etag>

impl HeaderFormat for Etag

fn fmt_header(&self, fmt: &mut Formatter) -> Result

Derived Implementations

impl Show for Etag

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for Etag

fn eq(&self, __arg_0: &Etag) -> bool

fn ne(&self, __arg_0: &Etag) -> bool

impl Clone for Etag

fn clone(&self) -> Etag

fn clone_from(&mut self, source: &Self)