pub struct CorrelationHeaderName(/* private fields */);Implementations§
Source§impl CorrelationHeaderName
impl CorrelationHeaderName
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
pub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
Creates validated text metadata.
§Errors
Returns ApiPrimitiveError when the value is empty or contains control characters.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the value and returns the stored text.
Trait Implementations§
Source§impl AsRef<str> for CorrelationHeaderName
impl AsRef<str> for CorrelationHeaderName
Source§impl Clone for CorrelationHeaderName
impl Clone for CorrelationHeaderName
Source§fn clone(&self) -> CorrelationHeaderName
fn clone(&self) -> CorrelationHeaderName
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 CorrelationHeaderName
impl Debug for CorrelationHeaderName
Source§impl Display for CorrelationHeaderName
impl Display for CorrelationHeaderName
Source§impl FromStr for CorrelationHeaderName
impl FromStr for CorrelationHeaderName
Source§impl Hash for CorrelationHeaderName
impl Hash for CorrelationHeaderName
Source§impl Ord for CorrelationHeaderName
impl Ord for CorrelationHeaderName
Source§fn cmp(&self, other: &CorrelationHeaderName) -> Ordering
fn cmp(&self, other: &CorrelationHeaderName) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CorrelationHeaderName
impl PartialEq for CorrelationHeaderName
Source§fn eq(&self, other: &CorrelationHeaderName) -> bool
fn eq(&self, other: &CorrelationHeaderName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CorrelationHeaderName
impl PartialOrd for CorrelationHeaderName
Source§impl TryFrom<&str> for CorrelationHeaderName
impl TryFrom<&str> for CorrelationHeaderName
impl Eq for CorrelationHeaderName
impl StructuralPartialEq for CorrelationHeaderName
Auto Trait Implementations§
impl Freeze for CorrelationHeaderName
impl RefUnwindSafe for CorrelationHeaderName
impl Send for CorrelationHeaderName
impl Sync for CorrelationHeaderName
impl Unpin for CorrelationHeaderName
impl UnsafeUnpin for CorrelationHeaderName
impl UnwindSafe for CorrelationHeaderName
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