Struct typed_headers::QualityItem[][src]

pub struct QualityItem<T> {
    pub item: T,
    pub quality: Quality,
}

A value paired with its "quality" as defined in RFC7231.

Quality items are used in content negotiation headers such as Accept and Accept-Encoding.

Fields

Methods

impl<T> QualityItem<T>
[src]

Creates a new quality item.

Trait Implementations

impl<T: Debug> Debug for QualityItem<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Clone> Clone for QualityItem<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq> PartialEq for QualityItem<T>
[src]

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

This method tests for !=.

impl<T> Display for QualityItem<T> where
    T: Display
[src]

Formats the value using the given formatter. Read more

impl<T> FromStr for QualityItem<T> where
    T: FromStr
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl<T> Send for QualityItem<T> where
    T: Send

impl<T> Sync for QualityItem<T> where
    T: Sync