pub enum ContentSecurityPolicyDirective {
DefaultSrc,
ScriptSrc,
StyleSrc,
ImgSrc,
ConnectSrc,
FrameAncestors,
BaseUri,
FormAction,
UpgradeInsecureRequests,
Other,
}Expand description
Content Security Policy directive labels.
Variants§
DefaultSrc
ScriptSrc
StyleSrc
ImgSrc
ConnectSrc
FrameAncestors
BaseUri
FormAction
UpgradeInsecureRequests
Other
Implementations§
Trait Implementations§
Source§impl Clone for ContentSecurityPolicyDirective
impl Clone for ContentSecurityPolicyDirective
Source§fn clone(&self) -> ContentSecurityPolicyDirective
fn clone(&self) -> ContentSecurityPolicyDirective
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 FromStr for ContentSecurityPolicyDirective
impl FromStr for ContentSecurityPolicyDirective
Source§type Err = SecurityHeaderParseError
type Err = SecurityHeaderParseError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<ContentSecurityPolicyDirective, <ContentSecurityPolicyDirective as FromStr>::Err>
fn from_str( input: &str, ) -> Result<ContentSecurityPolicyDirective, <ContentSecurityPolicyDirective as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Ord for ContentSecurityPolicyDirective
impl Ord for ContentSecurityPolicyDirective
Source§fn cmp(&self, other: &ContentSecurityPolicyDirective) -> Ordering
fn cmp(&self, other: &ContentSecurityPolicyDirective) -> 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 ContentSecurityPolicyDirective
impl PartialEq for ContentSecurityPolicyDirective
Source§fn eq(&self, other: &ContentSecurityPolicyDirective) -> bool
fn eq(&self, other: &ContentSecurityPolicyDirective) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ContentSecurityPolicyDirective
impl PartialOrd for ContentSecurityPolicyDirective
impl Copy for ContentSecurityPolicyDirective
impl Eq for ContentSecurityPolicyDirective
impl StructuralPartialEq for ContentSecurityPolicyDirective
Auto Trait Implementations§
impl Freeze for ContentSecurityPolicyDirective
impl RefUnwindSafe for ContentSecurityPolicyDirective
impl Send for ContentSecurityPolicyDirective
impl Sync for ContentSecurityPolicyDirective
impl Unpin for ContentSecurityPolicyDirective
impl UnsafeUnpin for ContentSecurityPolicyDirective
impl UnwindSafe for ContentSecurityPolicyDirective
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