#[non_exhaustive]pub struct AffectedCode {
pub end_column: Option<i64>,
pub end_line: Option<i64>,
pub file: Option<Box<File>>,
pub owner: Option<Box<User>>,
pub remediation: Option<Box<Remediation>>,
pub rule: Option<Box<Rule>>,
pub start_column: Option<i64>,
pub start_line: Option<i64>,
}Expand description
Affected Code
The Affected Code object describes details about a code block identified as vulnerable.
[] Category: | Name: affected_code
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.end_column: Option<i64>End Column
The column number of the last part of the assessed code identified as vulnerable.
recommended
end_line: Option<i64>End Line
The line number of the last line of code block identified as vulnerable.
recommended
file: Option<Box<File>>File
Details about the file that contains the affected code block.
required
owner: Option<Box<User>>Owner
Details about the user that owns the affected file.
optional
remediation: Option<Box<Remediation>>Remediation Guidance
Describes the recommended remediation steps to address identified issue(s).
optional
rule: Option<Box<Rule>>Related Rule
Details about the specific rule, e.g., those defined as part of a larger policy, that triggered the finding.
recommended
start_column: Option<i64>Start Column
The column number of the first part of the assessed code identified as vulnerable.
recommended
start_line: Option<i64>Start Line
The line number of the first line of code block identified as vulnerable.
recommended
Trait Implementations§
Source§impl Clone for AffectedCode
impl Clone for AffectedCode
Source§fn clone(&self) -> AffectedCode
fn clone(&self) -> AffectedCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more