pub struct CspDirective {
pub name: String,
pub sources: Vec<String>,
}Expand description
One Content-Security-Policy directive with its sources, in the insertion order the reference dict keeps (a Vec keeps the built header deterministic).
Fields§
§name: String§sources: Vec<String>Implementations§
Trait Implementations§
Source§impl Clone for CspDirective
impl Clone for CspDirective
Source§impl Debug for CspDirective
impl Debug for CspDirective
impl Eq for CspDirective
Source§impl PartialEq for CspDirective
impl PartialEq for CspDirective
impl StructuralPartialEq for CspDirective
Auto Trait Implementations§
impl Freeze for CspDirective
impl RefUnwindSafe for CspDirective
impl Send for CspDirective
impl Sync for CspDirective
impl Unpin for CspDirective
impl UnsafeUnpin for CspDirective
impl UnwindSafe for CspDirective
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.