pub struct Finding {
pub severity: Severity,
pub category: FindingCategory,
pub title: String,
pub description: String,
pub file: Option<String>,
pub line: Option<usize>,
pub snippet: Option<String>,
}Expand description
A single security finding from an analyzer
Fields§
§severity: Severity§category: FindingCategory§title: String§description: String§file: Option<String>File where the finding was detected (relative to package root)
line: Option<usize>Line number in the file
snippet: Option<String>The matched code snippet
Trait 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
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