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