pub struct ContentSecurityPolicyIssueDetailsBuilder { /* private fields */ }Expand description
Builder for ContentSecurityPolicyIssueDetails.
Implementations§
Source§impl ContentSecurityPolicyIssueDetailsBuilder
impl ContentSecurityPolicyIssueDetailsBuilder
Sourcepub fn blocked_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn blocked_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The url not included in allowed sources.
Sourcepub fn violated_directive<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn violated_directive<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Specific directive that is violated, causing the CSP issue.
pub fn is_report_only<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn content_security_policy_violation_type<VALUE: Into<ContentSecurityPolicyViolationType>>( &mut self, value: VALUE, ) -> &mut Self
pub fn frame_ancestor<VALUE: Into<AffectedFrame>>( &mut self, value: VALUE, ) -> &mut Self
pub fn source_code_location<VALUE: Into<SourceCodeLocation>>( &mut self, value: VALUE, ) -> &mut Self
pub fn violating_node_id<VALUE: Into<BackendNodeId>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<ContentSecurityPolicyIssueDetails, ContentSecurityPolicyIssueDetailsBuilderError>
pub fn build( &self, ) -> Result<ContentSecurityPolicyIssueDetails, ContentSecurityPolicyIssueDetailsBuilderError>
Builds a new ContentSecurityPolicyIssueDetails.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for ContentSecurityPolicyIssueDetailsBuilder
impl Clone for ContentSecurityPolicyIssueDetailsBuilder
Source§fn clone(&self) -> ContentSecurityPolicyIssueDetailsBuilder
fn clone(&self) -> ContentSecurityPolicyIssueDetailsBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ContentSecurityPolicyIssueDetailsBuilder
impl RefUnwindSafe for ContentSecurityPolicyIssueDetailsBuilder
impl Send for ContentSecurityPolicyIssueDetailsBuilder
impl Sync for ContentSecurityPolicyIssueDetailsBuilder
impl Unpin for ContentSecurityPolicyIssueDetailsBuilder
impl UnsafeUnpin for ContentSecurityPolicyIssueDetailsBuilder
impl UnwindSafe for ContentSecurityPolicyIssueDetailsBuilder
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