Struct webmachine_rust::content_negotiation::Charset
[−]
[src]
pub struct Charset {
pub charset: String,
pub weight: f32,
}Struct to represent a character set
Fields
charset: String
Charset code
weight: f32
Weight associated with the charset
Methods
impl Charset[src]
fn parse_string(charset: &String) -> Charset
Parse a string into a Charset struct
fn with_weight(&self, weight: &String) -> Charset
Adds a quality weight to the charset
fn matches(&self, other: &Charset) -> bool
If this media charset matches the other media charset
fn to_string(&self) -> String
Converts this charset into a string
Trait Implementations
impl Debug for Charset[src]
impl Clone for Charset[src]
fn clone(&self) -> Charset
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more