pub struct ContentSecurityPolicyIssueDetails {
pub blocked_url: Option<String>,
pub violated_directive: String,
pub is_report_only: bool,
pub content_security_policy_violation_type: ContentSecurityPolicyViolationType,
pub frame_ancestor: Option<AffectedFrame>,
pub source_code_location: Option<SourceCodeLocation>,
pub violating_node_id: Option<BackendNodeId>,
}
Fields§
§blocked_url: Option<String>
The url not included in allowed sources.
violated_directive: String
Specific directive that is violated, causing the CSP issue.
is_report_only: bool
§content_security_policy_violation_type: ContentSecurityPolicyViolationType
§frame_ancestor: Option<AffectedFrame>
§source_code_location: Option<SourceCodeLocation>
§violating_node_id: Option<BackendNodeId>
Implementations§
Source§impl ContentSecurityPolicyIssueDetails
impl ContentSecurityPolicyIssueDetails
pub fn new( violated_directive: impl Into<String>, is_report_only: impl Into<bool>, content_security_policy_violation_type: impl Into<ContentSecurityPolicyViolationType>, ) -> ContentSecurityPolicyIssueDetails
Source§impl ContentSecurityPolicyIssueDetails
impl ContentSecurityPolicyIssueDetails
pub const IDENTIFIER: &'static str = "Audits.ContentSecurityPolicyIssueDetails"
Trait Implementations§
Source§impl Clone for ContentSecurityPolicyIssueDetails
impl Clone for ContentSecurityPolicyIssueDetails
Source§fn clone(&self) -> ContentSecurityPolicyIssueDetails
fn clone(&self) -> ContentSecurityPolicyIssueDetails
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for ContentSecurityPolicyIssueDetails
impl<'de> Deserialize<'de> for ContentSecurityPolicyIssueDetails
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContentSecurityPolicyIssueDetails, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContentSecurityPolicyIssueDetails, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContentSecurityPolicyIssueDetails
impl PartialEq for ContentSecurityPolicyIssueDetails
Source§fn eq(&self, other: &ContentSecurityPolicyIssueDetails) -> bool
fn eq(&self, other: &ContentSecurityPolicyIssueDetails) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for ContentSecurityPolicyIssueDetails
impl Serialize for ContentSecurityPolicyIssueDetails
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ContentSecurityPolicyIssueDetails
Auto Trait Implementations§
impl Freeze for ContentSecurityPolicyIssueDetails
impl RefUnwindSafe for ContentSecurityPolicyIssueDetails
impl Send for ContentSecurityPolicyIssueDetails
impl Sync for ContentSecurityPolicyIssueDetails
impl Unpin for ContentSecurityPolicyIssueDetails
impl UnwindSafe for ContentSecurityPolicyIssueDetails
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more