Struct async_nats::header::HeaderValue
source · pub struct HeaderValue { /* private fields */ }
Expand description
A struct representing value of a given header. Can contain one or more elements.
Examples
use std::str::FromStr;
let mut headers = async_nats::HeaderMap::new();
headers.insert("Key", "Value");
headers.insert("Another", async_nats::HeaderValue::from_str("AnotherValue")?);
Implementations
sourceimpl HeaderValue
impl HeaderValue
Trait Implementations
sourceimpl Clone for HeaderValue
impl Clone for HeaderValue
sourcefn clone(&self) -> HeaderValue
fn clone(&self) -> HeaderValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for HeaderValue
impl Debug for HeaderValue
sourceimpl Default for HeaderValue
impl Default for HeaderValue
sourcefn default() -> HeaderValue
fn default() -> HeaderValue
Returns the “default value” for a type. Read more
sourceimpl From<&str> for HeaderValue
impl From<&str> for HeaderValue
sourceimpl From<u64> for HeaderValue
impl From<u64> for HeaderValue
sourceimpl FromStr for HeaderValue
impl FromStr for HeaderValue
sourceimpl IntoHeaderValue for HeaderValue
impl IntoHeaderValue for HeaderValue
fn into_header_value(self) -> HeaderValue
sourceimpl IntoIterator for HeaderValue
impl IntoIterator for HeaderValue
sourceimpl PartialEq<HeaderValue> for HeaderValue
impl PartialEq<HeaderValue> for HeaderValue
sourcefn eq(&self, other: &HeaderValue) -> bool
fn eq(&self, other: &HeaderValue) -> bool
sourceimpl Serialize for HeaderValue
impl Serialize for HeaderValue
impl Eq for HeaderValue
impl StructuralEq for HeaderValue
impl StructuralPartialEq for HeaderValue
Auto Trait Implementations
impl RefUnwindSafe for HeaderValue
impl Send for HeaderValue
impl Sync for HeaderValue
impl Unpin for HeaderValue
impl UnwindSafe for HeaderValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more