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