Struct typed_headers::ContentCoding[][src]

pub struct ContentCoding(_);

A content coding, used in the Accept-Encoding and Content-Encoding headers.

Methods

impl ContentCoding
[src]

BROTLI: ContentCoding = ContentCoding(Inner::BROTLI)

The Brotli coding, as specified in RFC7932.

GZIP: ContentCoding = ContentCoding(Inner::GZIP)

The Gzip coding, as specified in RFC7230.

DEFLATE: ContentCoding = ContentCoding(Inner::DEFLATE)

The Deflate coding, as specified in RFC7230.

COMPRESS: ContentCoding = ContentCoding(Inner::COMPRESS)

The Compress coding, as specified in RFC7230.

IDENTITY: ContentCoding = ContentCoding(Inner::IDENTITY)

The identity coding.

STAR: ContentCoding = ContentCoding(Inner::STAR)

A wildcard, used in the Accept-Encoding header to indicate that all codings are acceptable.

Constructs a new instance of this value from a string.

An error is returned if the string is not a valid token.

Returns the string representation of this token.

Trait Implementations

impl Debug for ContentCoding
[src]

Formats the value using the given formatter. Read more

impl Clone for ContentCoding
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ContentCoding
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ContentCoding
[src]

impl Display for ContentCoding
[src]

Formats the value using the given formatter. Read more

impl FromStr for ContentCoding
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl From<ContentCoding> for ContentEncoding
[src]

Performs the conversion.

Auto Trait Implementations