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