pub struct HeaderParam {
pub name: Vec<u8>,
pub value: Option<Vec<u8>>,
}Expand description
One header parameter: name or name=value, where the value may be quoted.
Fields§
§name: Vec<u8>The parameter name, lowercased for comparison.
value: Option<Vec<u8>>The value, with any surrounding quotes removed and escapes resolved.
Implementations§
Trait Implementations§
Source§impl Clone for HeaderParam
impl Clone for HeaderParam
Source§fn clone(&self) -> HeaderParam
fn clone(&self) -> HeaderParam
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeaderParam
impl Debug for HeaderParam
Source§impl PartialEq for HeaderParam
impl PartialEq for HeaderParam
Source§fn eq(&self, other: &HeaderParam) -> bool
fn eq(&self, other: &HeaderParam) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HeaderParam
impl StructuralPartialEq for HeaderParam
Auto Trait Implementations§
impl Freeze for HeaderParam
impl RefUnwindSafe for HeaderParam
impl Send for HeaderParam
impl Sync for HeaderParam
impl Unpin for HeaderParam
impl UnsafeUnpin for HeaderParam
impl UnwindSafe for HeaderParam
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