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