pub struct Finding {
pub rule: String,
pub message: String,
pub file: Option<String>,
pub line: Option<u32>,
pub severity: Severity,
}Expand description
A single actionable item produced by a check (a lint hit, a failed test, a rule violation). Renders into the agent-visible block message.
Fields§
§rule: String§message: String§file: Option<String>File path the finding refers to, formatted via Path::to_string_lossy()
at construction time. Stored as String (not PathBuf) so JSON
serialisation on Windows can’t fail on non-UTF-8 paths — findings are
human-rendered anyway, lossy display is acceptable.
line: Option<u32>§severity: SeverityTrait Implementations§
Source§impl<'de> Deserialize<'de> for Finding
impl<'de> Deserialize<'de> for Finding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PluginFinding> for Finding
impl From<PluginFinding> for Finding
Source§fn from(pf: PluginFinding) -> Self
fn from(pf: PluginFinding) -> Self
Converts to this type from the input type.
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