Struct webmachine_rust::content_negotiation::Encoding
[−]
[src]
pub struct Encoding {
pub encoding: String,
pub weight: f32,
}Struct to represent an encoding
Fields
encoding: String
Encoding string
weight: f32
Weight associated with the encoding
Methods
impl Encoding[src]
fn parse_string(encoding: &String) -> Encoding
Parse a string into a Charset struct
fn with_weight(&self, weight: &String) -> Encoding
Adds a quality weight to the charset
fn matches(&self, other: &Encoding) -> bool
If this encoding matches the other encoding
fn to_string(&self) -> String
Converts this encoding into a string
Trait Implementations
impl Debug for Encoding[src]
impl Clone for Encoding[src]
fn clone(&self) -> Encoding
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