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