pub struct HeaderName { /* private fields */ }
Expand description
Defines a NATS header field name
Header field names identify the header. Header sets may include multiple headers with the same name.
§Representation
HeaderName
represents standard header names using an enum
, as such they
will not require an allocation for storage.
Implementations§
Source§impl HeaderName
impl HeaderName
Sourcepub const fn from_static(value: &'static str) -> HeaderName
pub const fn from_static(value: &'static str) -> HeaderName
Converts a static string to a NATS header name.
Trait Implementations§
Source§impl AsRef<[u8]> for HeaderName
impl AsRef<[u8]> for HeaderName
Source§impl AsRef<str> for HeaderName
impl AsRef<str> for HeaderName
Source§impl Clone for HeaderName
impl Clone for HeaderName
Source§fn clone(&self) -> HeaderName
fn clone(&self) -> HeaderName
Returns a copy 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 HeaderName
impl Debug for HeaderName
Source§impl<'de> Deserialize<'de> for HeaderName
impl<'de> Deserialize<'de> for HeaderName
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 HeaderName
impl Display for HeaderName
Source§impl FromStr for HeaderName
impl FromStr for HeaderName
Source§impl Hash for HeaderName
impl Hash for HeaderName
Source§impl IntoHeaderName for HeaderName
impl IntoHeaderName for HeaderName
fn into_header_name(self) -> HeaderName
Source§impl PartialEq for HeaderName
impl PartialEq for HeaderName
Source§impl Serialize for HeaderName
impl Serialize for HeaderName
impl Eq for HeaderName
impl StructuralPartialEq for HeaderName
Auto Trait Implementations§
impl !Freeze for HeaderName
impl RefUnwindSafe for HeaderName
impl Send for HeaderName
impl Sync for HeaderName
impl Unpin for HeaderName
impl UnwindSafe for HeaderName
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