pub struct SerializableHeaderMap(pub HeaderMap);Expand description
Serializable HTTP headers.
Tuple Fields§
§0: HeaderMapImplementations§
Source§impl SerializableHeaderMap
impl SerializableHeaderMap
Sourcepub fn contains_key<K>(&self, key: K) -> boolwhere
K: AsHeaderName,
pub fn contains_key<K>(&self, key: K) -> boolwhere
K: AsHeaderName,
Returns true if the map contains a value for the specified key.
Sourcepub fn insert<K>(&mut self, key: K, val: HeaderValue) -> Option<HeaderValue>where
K: IntoHeaderName,
pub fn insert<K>(&mut self, key: K, val: HeaderValue) -> Option<HeaderValue>where
K: IntoHeaderName,
Inserts a key-value pair into the map.
Trait Implementations§
Source§impl Clone for SerializableHeaderMap
impl Clone for SerializableHeaderMap
Source§fn clone(&self) -> SerializableHeaderMap
fn clone(&self) -> SerializableHeaderMap
Returns a duplicate of the value. Read more
1.0.0 · 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 SerializableHeaderMap
impl Debug for SerializableHeaderMap
Source§impl Default for SerializableHeaderMap
impl Default for SerializableHeaderMap
Source§fn default() -> SerializableHeaderMap
fn default() -> SerializableHeaderMap
Returns the “default value” for a type. Read more
Source§impl From<HeaderMap> for SerializableHeaderMap
impl From<HeaderMap> for SerializableHeaderMap
Source§impl PartialEq for SerializableHeaderMap
impl PartialEq for SerializableHeaderMap
impl Eq for SerializableHeaderMap
impl StructuralPartialEq for SerializableHeaderMap
Auto Trait Implementations§
impl Freeze for SerializableHeaderMap
impl RefUnwindSafe for SerializableHeaderMap
impl Send for SerializableHeaderMap
impl Sync for SerializableHeaderMap
impl Unpin for SerializableHeaderMap
impl UnsafeUnpin for SerializableHeaderMap
impl UnwindSafe for SerializableHeaderMap
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more