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