pub struct SarifFindingFields {
pub rule_id: &'static str,
pub level: &'static str,
pub message: String,
pub uri: String,
pub region: Option<(u32, u32)>,
pub source_path: Option<PathBuf>,
pub properties: Option<Value>,
}Expand description
Intermediate fields extracted from one issue for SARIF result construction.
Fields§
§rule_id: &'static strSARIF rule id the result references.
level: &'static strSARIF level: error, warning, or note.
message: StringHuman-readable result message text.
uri: StringArtifact URI relative to the analysed root.
region: Option<(u32, u32)>1-based (start_line, start_column) region, when known.
source_path: Option<PathBuf>Absolute source path used to load the fingerprint snippet.
properties: Option<Value>Extra properties bag copied onto the SARIF result verbatim.
Trait Implementations§
Source§impl Clone for SarifFindingFields
impl Clone for SarifFindingFields
Auto Trait Implementations§
impl Freeze for SarifFindingFields
impl RefUnwindSafe for SarifFindingFields
impl Send for SarifFindingFields
impl Sync for SarifFindingFields
impl Unpin for SarifFindingFields
impl UnsafeUnpin for SarifFindingFields
impl UnwindSafe for SarifFindingFields
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