pub enum SecurityHeaderKind {
ContentSecurityPolicy,
StrictTransportSecurity,
XContentTypeOptions,
XFrameOptions,
ReferrerPolicy,
PermissionsPolicy,
CrossOriginOpenerPolicy,
CrossOriginResourcePolicy,
CrossOriginEmbedderPolicy,
CacheControl,
}Expand description
Security header categories.
Variants§
ContentSecurityPolicy
StrictTransportSecurity
XContentTypeOptions
XFrameOptions
ReferrerPolicy
PermissionsPolicy
CrossOriginOpenerPolicy
CrossOriginResourcePolicy
CrossOriginEmbedderPolicy
CacheControl
Implementations§
Source§impl SecurityHeaderKind
impl SecurityHeaderKind
Sourcepub const fn header_name(self) -> &'static str
pub const fn header_name(self) -> &'static str
Returns the canonical HTTP header name.
Trait Implementations§
Source§impl Clone for SecurityHeaderKind
impl Clone for SecurityHeaderKind
Source§fn clone(&self) -> SecurityHeaderKind
fn clone(&self) -> SecurityHeaderKind
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 SecurityHeaderKind
impl Debug for SecurityHeaderKind
Source§impl Display for SecurityHeaderKind
impl Display for SecurityHeaderKind
Source§impl FromStr for SecurityHeaderKind
impl FromStr for SecurityHeaderKind
Source§type Err = SecurityHeaderParseError
type Err = SecurityHeaderParseError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<SecurityHeaderKind, <SecurityHeaderKind as FromStr>::Err>
fn from_str( input: &str, ) -> Result<SecurityHeaderKind, <SecurityHeaderKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for SecurityHeaderKind
impl Hash for SecurityHeaderKind
Source§impl Ord for SecurityHeaderKind
impl Ord for SecurityHeaderKind
Source§fn cmp(&self, other: &SecurityHeaderKind) -> Ordering
fn cmp(&self, other: &SecurityHeaderKind) -> 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 SecurityHeaderKind
impl PartialEq for SecurityHeaderKind
Source§fn eq(&self, other: &SecurityHeaderKind) -> bool
fn eq(&self, other: &SecurityHeaderKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SecurityHeaderKind
impl PartialOrd for SecurityHeaderKind
impl Copy for SecurityHeaderKind
impl Eq for SecurityHeaderKind
impl StructuralPartialEq for SecurityHeaderKind
Auto Trait Implementations§
impl Freeze for SecurityHeaderKind
impl RefUnwindSafe for SecurityHeaderKind
impl Send for SecurityHeaderKind
impl Sync for SecurityHeaderKind
impl Unpin for SecurityHeaderKind
impl UnsafeUnpin for SecurityHeaderKind
impl UnwindSafe for SecurityHeaderKind
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