pub struct ArgumentName(/* private fields */);Implementations§
Source§impl ArgumentName
impl ArgumentName
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 ArgumentName
impl AsRef<str> for ArgumentName
Source§impl Clone for ArgumentName
impl Clone for ArgumentName
Source§fn clone(&self) -> ArgumentName
fn clone(&self) -> ArgumentName
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 ArgumentName
impl Debug for ArgumentName
Source§impl Display for ArgumentName
impl Display for ArgumentName
Source§impl FromStr for ArgumentName
impl FromStr for ArgumentName
Source§impl Hash for ArgumentName
impl Hash for ArgumentName
Source§impl Ord for ArgumentName
impl Ord for ArgumentName
Source§fn cmp(&self, other: &ArgumentName) -> Ordering
fn cmp(&self, other: &ArgumentName) -> 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 ArgumentName
impl PartialEq for ArgumentName
Source§impl PartialOrd for ArgumentName
impl PartialOrd for ArgumentName
Source§impl TryFrom<&str> for ArgumentName
impl TryFrom<&str> for ArgumentName
impl Eq for ArgumentName
impl StructuralPartialEq for ArgumentName
Auto Trait Implementations§
impl Freeze for ArgumentName
impl RefUnwindSafe for ArgumentName
impl Send for ArgumentName
impl Sync for ArgumentName
impl Unpin for ArgumentName
impl UnsafeUnpin for ArgumentName
impl UnwindSafe for ArgumentName
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