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