pub struct SecurityHeaderName(/* private fields */);Expand description
A validated HTTP security header name.
Implementations§
Source§impl SecurityHeaderName
impl SecurityHeaderName
Sourcepub fn new(
input: impl AsRef<str>,
) -> Result<SecurityHeaderName, SecurityHeaderNameError>
pub fn new( input: impl AsRef<str>, ) -> Result<SecurityHeaderName, SecurityHeaderNameError>
Creates a security header name from an HTTP token-shaped string.
Trait Implementations§
Source§impl Clone for SecurityHeaderName
impl Clone for SecurityHeaderName
Source§fn clone(&self) -> SecurityHeaderName
fn clone(&self) -> SecurityHeaderName
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 SecurityHeaderName
impl Debug for SecurityHeaderName
Source§impl Display for SecurityHeaderName
impl Display for SecurityHeaderName
Source§impl FromStr for SecurityHeaderName
impl FromStr for SecurityHeaderName
Source§type Err = SecurityHeaderNameError
type Err = SecurityHeaderNameError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<SecurityHeaderName, <SecurityHeaderName as FromStr>::Err>
fn from_str( input: &str, ) -> Result<SecurityHeaderName, <SecurityHeaderName as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for SecurityHeaderName
impl Hash for SecurityHeaderName
Source§impl Ord for SecurityHeaderName
impl Ord for SecurityHeaderName
Source§fn cmp(&self, other: &SecurityHeaderName) -> Ordering
fn cmp(&self, other: &SecurityHeaderName) -> 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 SecurityHeaderName
impl PartialEq for SecurityHeaderName
Source§fn eq(&self, other: &SecurityHeaderName) -> bool
fn eq(&self, other: &SecurityHeaderName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SecurityHeaderName
impl PartialOrd for SecurityHeaderName
Source§impl TryFrom<&str> for SecurityHeaderName
impl TryFrom<&str> for SecurityHeaderName
Source§type Error = SecurityHeaderNameError
type Error = SecurityHeaderNameError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<SecurityHeaderName, <SecurityHeaderName as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<SecurityHeaderName, <SecurityHeaderName as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for SecurityHeaderName
impl StructuralPartialEq for SecurityHeaderName
Auto Trait Implementations§
impl Freeze for SecurityHeaderName
impl RefUnwindSafe for SecurityHeaderName
impl Send for SecurityHeaderName
impl Sync for SecurityHeaderName
impl Unpin for SecurityHeaderName
impl UnsafeUnpin for SecurityHeaderName
impl UnwindSafe for SecurityHeaderName
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