pub struct CodeScanningAlertCreatedAlertInstancesItem {
pub analysis_key: String,
pub classifications: Vec<String>,
pub commit_sha: Option<String>,
pub environment: String,
pub location: Option<CodeScanningAlertCreatedAlertInstancesItemLocation>,
pub message: Option<CodeScanningAlertCreatedAlertInstancesItemMessage>,
pub ref_: String,
pub state: CodeScanningAlertCreatedAlertInstancesItemState,
}
Expand description
CodeScanningAlertCreatedAlertInstancesItem
JSON schema
{
"type": "object",
"required": [
"analysis_key",
"environment",
"ref",
"state"
],
"properties": {
"analysis_key": {
"description": "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name.",
"type": "string"
},
"classifications": {
"type": "array",
"items": {
"type": "string"
}
},
"commit_sha": {
"type": "string"
},
"environment": {
"description": "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.",
"type": "string"
},
"location": {
"type": "object",
"properties": {
"end_column": {
"type": "integer"
},
"end_line": {
"type": "integer"
},
"path": {
"type": "string"
},
"start_column": {
"type": "integer"
},
"start_line": {
"type": "integer"
}
},
"additionalProperties": false
},
"message": {
"type": "object",
"properties": {
"text": {
"type": "string"
}
},
"additionalProperties": false
},
"ref": {
"description": "The full Git reference, formatted as `refs/heads/<branch name>`.",
"type": "string"
},
"state": {
"type": "string",
"enum": [
"open",
"dismissed"
]
}
},
"additionalProperties": false
}
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.
classifications: 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<CodeScanningAlertCreatedAlertInstancesItemLocation>
§message: Option<CodeScanningAlertCreatedAlertInstancesItemMessage>
§ref_: String
The full Git reference, formatted as refs/heads/<branch name>
.
state: CodeScanningAlertCreatedAlertInstancesItemState
Implementations§
Trait Implementations§
Source§impl Clone for CodeScanningAlertCreatedAlertInstancesItem
impl Clone for CodeScanningAlertCreatedAlertInstancesItem
Source§fn clone(&self) -> CodeScanningAlertCreatedAlertInstancesItem
fn clone(&self) -> CodeScanningAlertCreatedAlertInstancesItem
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<'de> Deserialize<'de> for CodeScanningAlertCreatedAlertInstancesItem
impl<'de> Deserialize<'de> for CodeScanningAlertCreatedAlertInstancesItem
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 From<&CodeScanningAlertCreatedAlertInstancesItem> for CodeScanningAlertCreatedAlertInstancesItem
impl From<&CodeScanningAlertCreatedAlertInstancesItem> for CodeScanningAlertCreatedAlertInstancesItem
Source§fn from(value: &CodeScanningAlertCreatedAlertInstancesItem) -> Self
fn from(value: &CodeScanningAlertCreatedAlertInstancesItem) -> Self
Converts to this type from the input type.
Source§impl From<CodeScanningAlertCreatedAlertInstancesItem> for CodeScanningAlertCreatedAlertInstancesItem
impl From<CodeScanningAlertCreatedAlertInstancesItem> for CodeScanningAlertCreatedAlertInstancesItem
Source§fn from(value: CodeScanningAlertCreatedAlertInstancesItem) -> Self
fn from(value: CodeScanningAlertCreatedAlertInstancesItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CodeScanningAlertCreatedAlertInstancesItem
impl RefUnwindSafe for CodeScanningAlertCreatedAlertInstancesItem
impl Send for CodeScanningAlertCreatedAlertInstancesItem
impl Sync for CodeScanningAlertCreatedAlertInstancesItem
impl Unpin for CodeScanningAlertCreatedAlertInstancesItem
impl UnwindSafe for CodeScanningAlertCreatedAlertInstancesItem
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