pub struct AlertInstance {
pub analysis_key: String,
pub category: Option<String>,
pub classifications: Option<Vec<String>>,
pub commit_sha: Option<String>,
pub environment: String,
pub location: Option<Box<AlertInstanceLocation>>,
pub message: Option<Box<CodeScanningAlertInstanceMessage>>,
pub ref: String,
pub state: State,
}
Fields§
§analysis_key: String
Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name.
category: Option<String>
Identifies the configuration under which the analysis was executed.
classifications: Option<Vec<String>>
§commit_sha: Option<String>
§environment: 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.
location: Option<Box<AlertInstanceLocation>>
§message: Option<Box<CodeScanningAlertInstanceMessage>>
§ref: String
The full Git reference, formatted as refs/heads/<branch name>
.
state: State
State of a code scanning alert.
Implementations§
Source§impl AlertInstance
impl AlertInstance
Trait Implementations§
Source§impl Clone for AlertInstance
impl Clone for AlertInstance
Source§fn clone(&self) -> AlertInstance
fn clone(&self) -> AlertInstance
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AlertInstance
impl Debug for AlertInstance
Source§impl Default for AlertInstance
impl Default for AlertInstance
Source§fn default() -> AlertInstance
fn default() -> AlertInstance
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AlertInstance
impl<'de> Deserialize<'de> for AlertInstance
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 PartialEq for AlertInstance
impl PartialEq for AlertInstance
Source§impl Serialize for AlertInstance
impl Serialize for AlertInstance
impl StructuralPartialEq for AlertInstance
Auto Trait Implementations§
impl Freeze for AlertInstance
impl RefUnwindSafe for AlertInstance
impl Send for AlertInstance
impl Sync for AlertInstance
impl Unpin for AlertInstance
impl UnwindSafe for AlertInstance
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