pub struct MethodName(/* private fields */);Implementations§
Source§impl MethodName
impl MethodName
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 MethodName
impl AsRef<str> for MethodName
Source§impl Clone for MethodName
impl Clone for MethodName
Source§fn clone(&self) -> MethodName
fn clone(&self) -> MethodName
Returns a duplicate of the value. Read more
1.0.0 · 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 MethodName
impl Debug for MethodName
Source§impl Display for MethodName
impl Display for MethodName
Source§impl FromStr for MethodName
impl FromStr for MethodName
Source§impl Hash for MethodName
impl Hash for MethodName
Source§impl Ord for MethodName
impl Ord for MethodName
Source§fn cmp(&self, other: &MethodName) -> Ordering
fn cmp(&self, other: &MethodName) -> Ordering
1.21.0 · 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 MethodName
impl PartialEq for MethodName
Source§impl PartialOrd for MethodName
impl PartialOrd for MethodName
Source§impl TryFrom<&str> for MethodName
impl TryFrom<&str> for MethodName
impl Eq for MethodName
impl StructuralPartialEq for MethodName
Auto Trait Implementations§
impl Freeze for MethodName
impl RefUnwindSafe for MethodName
impl Send for MethodName
impl Sync for MethodName
impl Unpin for MethodName
impl UnsafeUnpin for MethodName
impl UnwindSafe for MethodName
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