pub struct CodeScanningAlertFixedAlertInstancesItem {
pub analysis_key: String,
pub classifications: Vec<String>,
pub commit_sha: Option<String>,
pub environment: String,
pub location: Option<CodeScanningAlertFixedAlertInstancesItemLocation>,
pub message: Option<CodeScanningAlertFixedAlertInstancesItemMessage>,
pub ref_: String,
pub state: CodeScanningAlertFixedAlertInstancesItemState,
}
Expand description
CodeScanningAlertFixedAlertInstancesItem
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": [
"fixed"
]
}
},
"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<CodeScanningAlertFixedAlertInstancesItemLocation>
§message: Option<CodeScanningAlertFixedAlertInstancesItemMessage>
§ref_: String
The full Git reference, formatted as refs/heads/<branch name>
.
state: CodeScanningAlertFixedAlertInstancesItemState
Implementations§
Trait Implementations§
Source§impl Clone for CodeScanningAlertFixedAlertInstancesItem
impl Clone for CodeScanningAlertFixedAlertInstancesItem
Source§fn clone(&self) -> CodeScanningAlertFixedAlertInstancesItem
fn clone(&self) -> CodeScanningAlertFixedAlertInstancesItem
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 CodeScanningAlertFixedAlertInstancesItem
impl<'de> Deserialize<'de> for CodeScanningAlertFixedAlertInstancesItem
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<&CodeScanningAlertFixedAlertInstancesItem> for CodeScanningAlertFixedAlertInstancesItem
impl From<&CodeScanningAlertFixedAlertInstancesItem> for CodeScanningAlertFixedAlertInstancesItem
Source§fn from(value: &CodeScanningAlertFixedAlertInstancesItem) -> Self
fn from(value: &CodeScanningAlertFixedAlertInstancesItem) -> Self
Converts to this type from the input type.
Source§impl From<CodeScanningAlertFixedAlertInstancesItem> for CodeScanningAlertFixedAlertInstancesItem
impl From<CodeScanningAlertFixedAlertInstancesItem> for CodeScanningAlertFixedAlertInstancesItem
Source§fn from(value: CodeScanningAlertFixedAlertInstancesItem) -> Self
fn from(value: CodeScanningAlertFixedAlertInstancesItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CodeScanningAlertFixedAlertInstancesItem
impl RefUnwindSafe for CodeScanningAlertFixedAlertInstancesItem
impl Send for CodeScanningAlertFixedAlertInstancesItem
impl Sync for CodeScanningAlertFixedAlertInstancesItem
impl Unpin for CodeScanningAlertFixedAlertInstancesItem
impl UnwindSafe for CodeScanningAlertFixedAlertInstancesItem
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