[−][src]Struct actix_http::http::header::ContentLanguage
Content-Language
header, defined in
RFC7231
The Content-Language
header field describes the natural language(s)
of the intended audience for the representation. Note that this
might not be equivalent to all the languages used within the
representation.
ABNF
Content-Language = 1#language-tag
Example values
da
mi, en
Examples
use actix_http::Response; let mut builder = Response::Ok(); builder.set( ContentLanguage(vec![ qitem(langtag!(en)), ]) );
use actix_http::Response; let mut builder = Response::Ok(); builder.set( ContentLanguage(vec![ qitem(langtag!(da)), qitem(langtag!(en;;;GB)), ]) );
Trait Implementations
impl Clone for ContentLanguage
[src]
pub fn clone(&self) -> ContentLanguage
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ContentLanguage
[src]
impl Deref for ContentLanguage
[src]
type Target = Vec<QualityItem<LanguageTag>>
The resulting type after dereferencing.
pub fn deref(&self) -> &Vec<QualityItem<LanguageTag>>
[src]
impl DerefMut for ContentLanguage
[src]
pub fn deref_mut(&mut self) -> &mut Vec<QualityItem<LanguageTag>>
[src]
impl Display for ContentLanguage
[src]
impl Header for ContentLanguage
[src]
pub fn name() -> HeaderName
[src]
pub fn parse<T>(msg: &T) -> Result<Self, ParseError> where
T: HttpMessage,
[src]
T: HttpMessage,
impl IntoHeaderValue for ContentLanguage
[src]
type Error = InvalidHeaderValue
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<HeaderValue, Self::Error>
[src]
impl PartialEq<ContentLanguage> for ContentLanguage
[src]
pub fn eq(&self, other: &ContentLanguage) -> bool
[src]
pub fn ne(&self, other: &ContentLanguage) -> bool
[src]
impl StructuralPartialEq for ContentLanguage
[src]
Auto Trait Implementations
impl RefUnwindSafe for ContentLanguage
impl Send for ContentLanguage
impl Sync for ContentLanguage
impl Unpin for ContentLanguage
impl UnwindSafe for ContentLanguage
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,