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