#[non_exhaustive]pub enum DirectiveStatus {
Current,
Deprecated,
}Expand description
Whether a registered directive is CSP3-current or deprecated.
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.
Current
Part of the current CSP3 directive set.
Deprecated
Kept for backward compatibility, superseded by another directive
(e.g. report-uri by report-to) or removed from later spec
drafts, but still commonly seen in the wild.
Trait Implementations§
Source§impl Clone for DirectiveStatus
impl Clone for DirectiveStatus
Source§fn clone(&self) -> DirectiveStatus
fn clone(&self) -> DirectiveStatus
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 moreimpl Copy for DirectiveStatus
Source§impl Debug for DirectiveStatus
impl Debug for DirectiveStatus
impl Eq for DirectiveStatus
Source§impl PartialEq for DirectiveStatus
impl PartialEq for DirectiveStatus
impl StructuralPartialEq for DirectiveStatus
Auto Trait Implementations§
impl Freeze for DirectiveStatus
impl RefUnwindSafe for DirectiveStatus
impl Send for DirectiveStatus
impl Sync for DirectiveStatus
impl Unpin for DirectiveStatus
impl UnsafeUnpin for DirectiveStatus
impl UnwindSafe for DirectiveStatus
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