Struct webmachine_rust::content_negotiation::MediaLanguage [] [src]

pub struct MediaLanguage {
    pub main: String,
    pub sub: String,
    pub weight: f32,
}

Struct to represent a media language

Fields

Main type of the media language

Sub type of the media language

Weight associated with the media language

Methods

impl MediaLanguage
[src]

Parse a string into a MediaLanguage struct

Adds a quality weight to the media language

If this media language matches the other media language

Converts this media language into a string

Trait Implementations

impl Debug for MediaLanguage
[src]

Formats the value using the given formatter.

impl Clone for MediaLanguage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for MediaLanguage
[src]

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

This method tests for !=.