pub struct ContentSecurityPolicyStatus<'a> { /* private fields */ }Implementations§
Source§impl<'a> ContentSecurityPolicyStatus<'a>
impl<'a> ContentSecurityPolicyStatus<'a>
Sourcepub fn builder(
effective_directives: impl Into<Cow<'a, str>>,
is_enforced: bool,
source: impl Into<ContentSecurityPolicySource>,
) -> ContentSecurityPolicyStatusBuilder<'a>
pub fn builder( effective_directives: impl Into<Cow<'a, str>>, is_enforced: bool, source: impl Into<ContentSecurityPolicySource>, ) -> ContentSecurityPolicyStatusBuilder<'a>
Creates a builder for this type with the required parameters:
effective_directives:is_enforced:source:
pub fn effective_directives(&self) -> &str
pub fn is_enforced(&self) -> bool
pub fn source(&self) -> &ContentSecurityPolicySource
Trait Implementations§
Source§impl<'a> Clone for ContentSecurityPolicyStatus<'a>
impl<'a> Clone for ContentSecurityPolicyStatus<'a>
Source§fn clone(&self) -> ContentSecurityPolicyStatus<'a>
fn clone(&self) -> ContentSecurityPolicyStatus<'a>
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<'a> Debug for ContentSecurityPolicyStatus<'a>
impl<'a> Debug for ContentSecurityPolicyStatus<'a>
Source§impl<'a> Default for ContentSecurityPolicyStatus<'a>
impl<'a> Default for ContentSecurityPolicyStatus<'a>
Source§fn default() -> ContentSecurityPolicyStatus<'a>
fn default() -> ContentSecurityPolicyStatus<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for ContentSecurityPolicyStatus<'a>
impl<'de, 'a> Deserialize<'de> for ContentSecurityPolicyStatus<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for ContentSecurityPolicyStatus<'a>
impl<'a> RefUnwindSafe for ContentSecurityPolicyStatus<'a>
impl<'a> Send for ContentSecurityPolicyStatus<'a>
impl<'a> Sync for ContentSecurityPolicyStatus<'a>
impl<'a> Unpin for ContentSecurityPolicyStatus<'a>
impl<'a> UnsafeUnpin for ContentSecurityPolicyStatus<'a>
impl<'a> UnwindSafe for ContentSecurityPolicyStatus<'a>
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