pub enum PolicyVerb {
Allow,
Deny,
Warn,
}Expand description
The verb of a single PolicyEntry — how a diagnostic code’s reporting is
adjusted.
Variants§
Allow
Suppress the diagnostic when its severity is Warning or Advisory. An Error-severity diagnostic is left unchanged (Errors are immutable).
Deny
Elevate the diagnostic to Error severity (turning a Warning/Advisory into a blocking Error). An already-Error diagnostic stays Error.
Warn
Force the diagnostic to Warning severity when it is currently Warning or Advisory. An Error-severity diagnostic is left unchanged.
Trait Implementations§
Source§impl Clone for PolicyVerb
impl Clone for PolicyVerb
Source§fn clone(&self) -> PolicyVerb
fn clone(&self) -> PolicyVerb
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 PolicyVerb
Source§impl Debug for PolicyVerb
impl Debug for PolicyVerb
impl Eq for PolicyVerb
Source§impl PartialEq for PolicyVerb
impl PartialEq for PolicyVerb
Source§fn eq(&self, other: &PolicyVerb) -> bool
fn eq(&self, other: &PolicyVerb) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PolicyVerb
Auto Trait Implementations§
impl Freeze for PolicyVerb
impl RefUnwindSafe for PolicyVerb
impl Send for PolicyVerb
impl Sync for PolicyVerb
impl Unpin for PolicyVerb
impl UnsafeUnpin for PolicyVerb
impl UnwindSafe for PolicyVerb
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