#[non_exhaustive]pub enum Keyword {
SelfKeyword,
UnsafeInline,
UnsafeEval,
StrictDynamic,
UnsafeHashes,
ReportSample,
UnsafeAllowRedirects,
WasmUnsafeEval,
}Expand description
All keyword-source values (CSP3 §2.3.1). See
plan/03-source-list-grammar.md: this list was pulled from an
automated spec fetch, not verified character-for-character against
the current spec text – re-check before treating it as exhaustive.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SelfKeyword
'self'.
UnsafeInline
'unsafe-inline'.
UnsafeEval
'unsafe-eval'.
StrictDynamic
'strict-dynamic'.
UnsafeHashes
'unsafe-hashes'.
ReportSample
'report-sample'.
UnsafeAllowRedirects
'unsafe-allow-redirects'.
WasmUnsafeEval
'wasm-unsafe-eval'.
Trait Implementations§
impl Copy for Keyword
impl Eq for Keyword
impl StructuralPartialEq for Keyword
Auto Trait Implementations§
impl Freeze for Keyword
impl RefUnwindSafe for Keyword
impl Send for Keyword
impl Sync for Keyword
impl Unpin for Keyword
impl UnsafeUnpin for Keyword
impl UnwindSafe for Keyword
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