#[non_exhaustive]pub struct PolicyList {
pub policies: Vec<Policy>,
}Expand description
A parsed list of CSP policies, as found in a Content-Security-Policy
HTTP header (a comma-separated list of serialized-policy, CSP3 §2.2).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.policies: Vec<Policy>The policies, in the order they appeared in the input (comma-separated).
Trait Implementations§
Source§impl Clone for PolicyList
impl Clone for PolicyList
Source§fn clone(&self) -> PolicyList
fn clone(&self) -> PolicyList
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 Debug for PolicyList
impl Debug for PolicyList
Source§impl Default for PolicyList
impl Default for PolicyList
Source§fn default() -> PolicyList
fn default() -> PolicyList
Returns the “default value” for a type. Read more
impl Eq for PolicyList
Source§impl PartialEq for PolicyList
impl PartialEq for PolicyList
impl StructuralPartialEq for PolicyList
Auto Trait Implementations§
impl Freeze for PolicyList
impl RefUnwindSafe for PolicyList
impl Send for PolicyList
impl Sync for PolicyList
impl Unpin for PolicyList
impl UnsafeUnpin for PolicyList
impl UnwindSafe for PolicyList
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