pub struct HeaderValue { /* private fields */ }
Expand description
Represents NATS header field value.
§Examples
let mut headers = HeaderMap::new();
headers.insert("Key", "Value");
headers.insert("Another", "AnotherValue");
Implementations§
Trait Implementations§
source§impl AsRef<[u8]> for HeaderValue
impl AsRef<[u8]> for HeaderValue
source§impl AsRef<str> for HeaderValue
impl AsRef<str> for HeaderValue
source§impl Clone for HeaderValue
impl Clone for HeaderValue
source§fn clone(&self) -> HeaderValue
fn clone(&self) -> HeaderValue
Returns a copy of the value. Read more
1.6.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 HeaderValue
impl Debug for HeaderValue
source§impl Default for HeaderValue
impl Default for HeaderValue
source§fn default() -> HeaderValue
fn default() -> HeaderValue
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for HeaderValue
impl<'de> Deserialize<'de> for HeaderValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for HeaderValue
impl Display for HeaderValue
source§impl From<&str> for HeaderValue
impl From<&str> for HeaderValue
source§impl From<String> for HeaderValue
impl From<String> for HeaderValue
source§impl From<i16> for HeaderValue
impl From<i16> for HeaderValue
source§impl From<i32> for HeaderValue
impl From<i32> for HeaderValue
source§impl From<i64> for HeaderValue
impl From<i64> for HeaderValue
source§impl From<isize> for HeaderValue
impl From<isize> for HeaderValue
source§impl From<u16> for HeaderValue
impl From<u16> for HeaderValue
source§impl From<u32> for HeaderValue
impl From<u32> for HeaderValue
source§impl From<u64> for HeaderValue
impl From<u64> for HeaderValue
source§impl From<usize> for HeaderValue
impl From<usize> for HeaderValue
source§impl FromStr for HeaderValue
impl FromStr for HeaderValue
source§impl IntoHeaderValue for HeaderValue
impl IntoHeaderValue for HeaderValue
fn into_header_value(self) -> HeaderValue
source§impl PartialEq for HeaderValue
impl PartialEq for HeaderValue
source§impl Serialize for HeaderValue
impl Serialize for HeaderValue
impl Eq for HeaderValue
impl StructuralPartialEq for HeaderValue
Auto Trait Implementations§
impl Freeze for HeaderValue
impl RefUnwindSafe for HeaderValue
impl Send for HeaderValue
impl Sync for HeaderValue
impl Unpin for HeaderValue
impl UnwindSafe for HeaderValue
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)