#[non_exhaustive]pub enum HttpHeaderValue {
Text(String),
Base64(String),
}Expand description
Captured header value bytes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text(String)
The value bytes are valid UTF-8; carried as value.
Base64(String)
The value bytes are not valid UTF-8; carried base64-encoded as
value_base64.
Trait Implementations§
Source§impl Clone for HttpHeaderValue
impl Clone for HttpHeaderValue
Source§impl Debug for HttpHeaderValue
impl Debug for HttpHeaderValue
impl Eq for HttpHeaderValue
Source§impl PartialEq for HttpHeaderValue
impl PartialEq for HttpHeaderValue
impl StructuralPartialEq for HttpHeaderValue
Auto Trait Implementations§
impl Forget for HttpHeaderValue
impl Freeze for HttpHeaderValue
impl Move for HttpHeaderValue
impl RefUnwindSafe for HttpHeaderValue
impl Send for HttpHeaderValue
impl Sync for HttpHeaderValue
impl Unpin for HttpHeaderValue
impl UnsafeUnpin for HttpHeaderValue
impl UnwindSafe for HttpHeaderValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more