pub enum CspSource {
Show 13 variants
Host(String),
Scheme(CspSchemeSource),
Nonce,
Hash(CspHashAlgorithm, String),
SelfOrigin,
UnsafeEval,
WasmUnsafeEval,
UnsafeHashes,
UnsafeInline,
StrictDynamic,
ReportSample,
InlineSpeculationRules,
None,
}Variants§
Host(String)
Scheme(CspSchemeSource)
Nonce
Nonce has special handling by the library.
Hash(CspHashAlgorithm, String)
SelfOrigin
Self is a keyword in rust, so Self::SelfOrigin serializes to 'self' in the header.
UnsafeEval
WasmUnsafeEval
UnsafeHashes
UnsafeInline
StrictDynamic
ReportSample
InlineSpeculationRules
None
Trait Implementations§
Source§impl From<CspSchemeSource> for CspSource
impl From<CspSchemeSource> for CspSource
Source§fn from(value: CspSchemeSource) -> Self
fn from(value: CspSchemeSource) -> Self
Converts to this type from the input type.
impl Eq for CspSource
impl StructuralPartialEq for CspSource
Auto Trait Implementations§
impl Freeze for CspSource
impl RefUnwindSafe for CspSource
impl Send for CspSource
impl Sync for CspSource
impl Unpin for CspSource
impl UnwindSafe for CspSource
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