Enum actix_web::http::ContentEncoding [] [src]

pub enum ContentEncoding {
    Auto,
    Br,
    Deflate,
    Gzip,
    Identity,
}

Represents supported types of content encodings

Variants

Automatically select encoding based on encoding negotiation

A format using the Brotli algorithm

A format using the zlib structure with deflate algorithm

Gzip algorithm

Indicates the identity function (i.e. no compression, nor modification)

Methods

impl ContentEncoding
[src]

[src]

[src]

[src]

default quality value

Trait Implementations

impl Copy for ContentEncoding
[src]

impl Clone for ContentEncoding
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for ContentEncoding
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Debug for ContentEncoding
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> From<&'a str> for ContentEncoding
[src]

[src]

Performs the conversion.

Auto Trait Implementations