pub struct Finding {
pub id: &'static str,
pub severity: Severity,
pub path: Path,
pub message: String,
pub detail: Option<String>,
pub hint: Option<String>,
}Expand description
One rule hit at a Path.
Fields§
§id: &'static strRegistered rule id (BR-02, PINT-TAX).
severity: SeverityFatal fails Report::ok; Warning and Info do not.
path: PathFinding location (Path; index is 0-based).
message: StringAuthority wording. Arithmetic expected/actual belongs in Self::detail.
detail: Option<String>Optional expected/actual. Not appended to Self::message by constructors.
hint: Option<String>Optional hint. Not shown by Display.
Implementations§
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