pub enum Severity {
Error,
Warning,
Info,
}Expand description
How loudly a finding reads.
Deliberately three, and deliberately not a number: a host with five levels maps them down, and a renderer with one glyph per level never has to guess where the cut is.
Named Severity inside this module and not re-exported at the crate root,
where the name is already fig-schema’s
Severity — a different fact, about what changing
a field costs rather than about what is wrong with it now. Two things worth
telling apart are worth two names, and annotate::Severity is the one that
moved.
Variants§
Error
The document is wrong: a link that resolves to nothing, a required field that is absent.
Warning
The document is suspicious: a retired term, a relation with no inverse.
Info
Something worth knowing and nothing to fix.
Trait Implementations§
impl Copy for Severity
impl Eq for Severity
impl StructuralPartialEq for Severity
Auto Trait Implementations§
impl Freeze for Severity
impl RefUnwindSafe for Severity
impl Send for Severity
impl Sync for Severity
impl Unpin for Severity
impl UnsafeUnpin for Severity
impl UnwindSafe for Severity
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