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