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