Struct webmachine_rust::content_negotiation::Encoding [] [src]

pub struct Encoding {
    pub encoding: String,
    pub weight: f32,
}

Struct to represent an encoding

Fields

Encoding string

Weight associated with the encoding

Methods

impl Encoding
[src]

Parse a string into a Charset struct

Adds a quality weight to the charset

If this encoding matches the other encoding

Converts this encoding into a string

Trait Implementations

impl Debug for Encoding
[src]

Formats the value using the given formatter.

impl Clone for Encoding
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Encoding
[src]

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

This method tests for !=.