Struct webmachine_rust::content_negotiation::Charset [] [src]

pub struct Charset {
    pub charset: String,
    pub weight: f32,
}

Struct to represent a character set

Fields

Charset code

Weight associated with the charset

Methods

impl Charset
[src]

Parse a string into a Charset struct

Adds a quality weight to the charset

If this media charset matches the other media charset

Converts this charset into a string

Trait Implementations

impl Debug for Charset
[src]

Formats the value using the given formatter.

impl Clone for Charset
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Charset
[src]

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

This method tests for !=.