pub enum Level {
Warn,
Error,
}Expand description
Severity of a single Diagnostic.
The lint stage only produces Warn values directly; strict mode
promotes them to Error in lint so callers don’t have to
re-implement that logic.
Variants§
Warn
Informational; does not cause a non-zero exit code on its own.
Error
Blocking; typically maps to CLI exit code 2 and MCP verdict = fail.
Trait Implementations§
impl Copy for Level
impl Eq for Level
impl StructuralPartialEq for Level
Auto Trait Implementations§
impl Freeze for Level
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnsafeUnpin for Level
impl UnwindSafe for Level
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