pub struct IdempotencyHeaderName(/* private fields */);Implementations§
Source§impl IdempotencyHeaderName
impl IdempotencyHeaderName
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 IdempotencyHeaderName
impl AsRef<str> for IdempotencyHeaderName
Source§impl Clone for IdempotencyHeaderName
impl Clone for IdempotencyHeaderName
Source§fn clone(&self) -> IdempotencyHeaderName
fn clone(&self) -> IdempotencyHeaderName
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 IdempotencyHeaderName
impl Debug for IdempotencyHeaderName
Source§impl Display for IdempotencyHeaderName
impl Display for IdempotencyHeaderName
Source§impl FromStr for IdempotencyHeaderName
impl FromStr for IdempotencyHeaderName
Source§impl Hash for IdempotencyHeaderName
impl Hash for IdempotencyHeaderName
Source§impl Ord for IdempotencyHeaderName
impl Ord for IdempotencyHeaderName
Source§fn cmp(&self, other: &IdempotencyHeaderName) -> Ordering
fn cmp(&self, other: &IdempotencyHeaderName) -> 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 IdempotencyHeaderName
impl PartialEq for IdempotencyHeaderName
Source§fn eq(&self, other: &IdempotencyHeaderName) -> bool
fn eq(&self, other: &IdempotencyHeaderName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for IdempotencyHeaderName
impl PartialOrd for IdempotencyHeaderName
Source§impl TryFrom<&str> for IdempotencyHeaderName
impl TryFrom<&str> for IdempotencyHeaderName
impl Eq for IdempotencyHeaderName
impl StructuralPartialEq for IdempotencyHeaderName
Auto Trait Implementations§
impl Freeze for IdempotencyHeaderName
impl RefUnwindSafe for IdempotencyHeaderName
impl Send for IdempotencyHeaderName
impl Sync for IdempotencyHeaderName
impl Unpin for IdempotencyHeaderName
impl UnsafeUnpin for IdempotencyHeaderName
impl UnwindSafe for IdempotencyHeaderName
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