pub struct ContentSecurityPolicyIssueDetails<'a> { /* private fields */ }Implementations§
Source§impl<'a> ContentSecurityPolicyIssueDetails<'a>
impl<'a> ContentSecurityPolicyIssueDetails<'a>
Sourcepub fn builder(
violated_directive: impl Into<Cow<'a, str>>,
is_report_only: bool,
content_security_policy_violation_type: impl Into<ContentSecurityPolicyViolationType>,
) -> ContentSecurityPolicyIssueDetailsBuilder<'a>
pub fn builder( violated_directive: impl Into<Cow<'a, str>>, is_report_only: bool, content_security_policy_violation_type: impl Into<ContentSecurityPolicyViolationType>, ) -> ContentSecurityPolicyIssueDetailsBuilder<'a>
Creates a builder for this type with the required parameters:
violated_directive: Specific directive that is violated, causing the CSP issue.is_report_only:content_security_policy_violation_type:
Sourcepub fn blocked_url(&self) -> Option<&str>
pub fn blocked_url(&self) -> Option<&str>
The url not included in allowed sources.
Sourcepub fn violated_directive(&self) -> &str
pub fn violated_directive(&self) -> &str
Specific directive that is violated, causing the CSP issue.
pub fn is_report_only(&self) -> bool
pub fn content_security_policy_violation_type( &self, ) -> &ContentSecurityPolicyViolationType
pub fn frame_ancestor(&self) -> Option<&AffectedFrame<'a>>
pub fn source_code_location(&self) -> Option<&SourceCodeLocation<'a>>
pub fn violating_node_id(&self) -> Option<&BackendNodeId>
Trait Implementations§
Source§impl<'a> Clone for ContentSecurityPolicyIssueDetails<'a>
impl<'a> Clone for ContentSecurityPolicyIssueDetails<'a>
Source§fn clone(&self) -> ContentSecurityPolicyIssueDetails<'a>
fn clone(&self) -> ContentSecurityPolicyIssueDetails<'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 ContentSecurityPolicyIssueDetails<'a>
impl<'a> Debug for ContentSecurityPolicyIssueDetails<'a>
Source§impl<'a> Default for ContentSecurityPolicyIssueDetails<'a>
impl<'a> Default for ContentSecurityPolicyIssueDetails<'a>
Source§fn default() -> ContentSecurityPolicyIssueDetails<'a>
fn default() -> ContentSecurityPolicyIssueDetails<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for ContentSecurityPolicyIssueDetails<'a>
impl<'de, 'a> Deserialize<'de> for ContentSecurityPolicyIssueDetails<'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 ContentSecurityPolicyIssueDetails<'a>
impl<'a> RefUnwindSafe for ContentSecurityPolicyIssueDetails<'a>
impl<'a> Send for ContentSecurityPolicyIssueDetails<'a>
impl<'a> Sync for ContentSecurityPolicyIssueDetails<'a>
impl<'a> Unpin for ContentSecurityPolicyIssueDetails<'a>
impl<'a> UnsafeUnpin for ContentSecurityPolicyIssueDetails<'a>
impl<'a> UnwindSafe for ContentSecurityPolicyIssueDetails<'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