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