pub struct Finding {
pub site: Site,
pub severity: Severity,
pub message: String,
pub kind: &'static str,
}Expand description
One of prov’s findings, placed.
Fields§
§site: SiteWhere in the document it sits.
severity: SeverityHow loudly to say it — see Severity.
message: Stringprov’s own sentence about it, with the leading path: dropped where it
was there: a per-document panel already knows which document it is
showing, and repeating the path in every row costs the width the message
needs.
kind: &'static strprov’s stable snake_case name for the kind
(Finding::kind) — broken_link, unknown_term,
… For a frontend that branches on the kind rather than reading the prose,
and the id an applied highlight carries.
Trait Implementations§
impl Eq for Finding
impl StructuralPartialEq for Finding
Auto Trait Implementations§
impl Freeze for Finding
impl RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin for Finding
impl UnsafeUnpin for Finding
impl UnwindSafe for Finding
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.