pub struct LintFinding {
pub code: &'static str,
pub field: &'static str,
pub severity: LintSeverity,
pub message: String,
}Expand description
A single plausibility finding. Phrased as a question, never a verdict —
callers should render message as-is.
Fields§
§code: &'static strStable machine-readable code, e.g. "battery.energy_capacity_mismatch".
field: &'static strcamelCase field locator this finding is primarily about.
severity: LintSeverity§message: StringHuman-readable finding, phrased as a question.
Trait Implementations§
Source§impl Clone for LintFinding
impl Clone for LintFinding
Source§fn clone(&self) -> LintFinding
fn clone(&self) -> LintFinding
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 moreSource§impl Debug for LintFinding
impl Debug for LintFinding
Source§impl PartialEq for LintFinding
impl PartialEq for LintFinding
impl StructuralPartialEq for LintFinding
Auto Trait Implementations§
impl Freeze for LintFinding
impl RefUnwindSafe for LintFinding
impl Send for LintFinding
impl Sync for LintFinding
impl Unpin for LintFinding
impl UnsafeUnpin for LintFinding
impl UnwindSafe for LintFinding
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