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