Struct ajars_actix_web::actix_web::http::header::ExtendedValue [−]
pub struct ExtendedValue { pub charset: Charset, pub language_tag: Option<LanguageTag>, pub value: Vec<u8, Global>, }
Expand description
The value part of an extended parameter consisting of three parts:
- The REQUIRED character set name (
charset
). - The OPTIONAL language information (
language_tag
). - A character sequence representing the actual value (
value
), separated by single quotes.
It is defined in RFC 5987.
Fields
charset: Charset
The character set that is used to encode the value
to a string.
language_tag: Option<LanguageTag>
The human language details of the value
, if available.
value: Vec<u8, Global>
The parameter value, as expressed in octets.
Trait Implementations
impl Clone for ExtendedValue
impl Clone for ExtendedValue
pub fn clone(&self) -> ExtendedValue
pub fn clone(&self) -> ExtendedValue
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for ExtendedValue
impl Debug for ExtendedValue
impl Display for ExtendedValue
impl Display for ExtendedValue
impl PartialEq<ExtendedValue> for ExtendedValue
impl PartialEq<ExtendedValue> for ExtendedValue
pub fn eq(&self, other: &ExtendedValue) -> bool
pub fn eq(&self, other: &ExtendedValue) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &ExtendedValue) -> bool
pub fn ne(&self, other: &ExtendedValue) -> bool
This method tests for !=
.
impl StructuralPartialEq for ExtendedValue
Auto Trait Implementations
impl RefUnwindSafe for ExtendedValue
impl Send for ExtendedValue
impl Sync for ExtendedValue
impl Unpin for ExtendedValue
impl UnwindSafe for ExtendedValue
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V