pub struct CodeScanningAlertInstance {
pub ref: Option<String>,
pub analysis_key: Option<String>,
pub environment: Option<String>,
pub category: Option<String>,
pub state: Option<CodeScanningAlertState>,
pub commit_sha: Option<String>,
pub message: Option<Box<CodeScanningAlertInstanceMessage>>,
pub location: Option<Box<CodeScanningAlertLocation>>,
pub html_url: Option<String>,
pub classifications: Option<Vec<CodeScanningAlertClassification>>,
}
Fields§
§ref: Option<String>
The Git reference, formatted as refs/pull/<number>/merge
, refs/pull/<number>/head
, refs/heads/<branch name>
or simply <branch name>
.
analysis_key: Option<String>
Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name.
environment: Option<String>
Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed.
category: Option<String>
Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.
state: Option<CodeScanningAlertState>
§commit_sha: Option<String>
§message: Option<Box<CodeScanningAlertInstanceMessage>>
§location: Option<Box<CodeScanningAlertLocation>>
§html_url: Option<String>
§classifications: Option<Vec<CodeScanningAlertClassification>>
Classifications that have been applied to the file that triggered the alert. For example identifying it as documentation, or a generated file.
Implementations§
Source§impl CodeScanningAlertInstance
impl CodeScanningAlertInstance
pub fn new() -> CodeScanningAlertInstance
Trait Implementations§
Source§impl Clone for CodeScanningAlertInstance
impl Clone for CodeScanningAlertInstance
Source§fn clone(&self) -> CodeScanningAlertInstance
fn clone(&self) -> CodeScanningAlertInstance
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more