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