Struct hyper::header::EntityTag [-] [+] [src]

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

An entity tag

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 Display for EntityTag

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

impl FromStr for EntityTag

type Err = ()

fn from_str(s: &str) -> Result<EntityTag, ()>

Derived Implementations

impl Debug for EntityTag

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

impl PartialEq for EntityTag

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

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

impl Clone for EntityTag

fn clone(&self) -> EntityTag

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