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