pub struct CodeScanningAlertAppearedInBranchAlertRule {
pub description: String,
pub id: String,
pub severity: Option<CodeScanningAlertAppearedInBranchAlertRuleSeverity>,
}
Expand description
CodeScanningAlertAppearedInBranchAlertRule
JSON schema
{
"type": "object",
"required": [
"description",
"id",
"severity"
],
"properties": {
"description": {
"description": "A short description of the rule used to detect the alert.",
"type": "string"
},
"id": {
"description": "A unique identifier for the rule used to detect the alert.",
"type": "string"
},
"severity": {
"description": "The severity of the alert.",
"type": [
"string",
"null"
],
"enum": [
"none",
"note",
"warning",
"error",
null
]
}
},
"additionalProperties": false
}
Fields§
§description: String
A short description of the rule used to detect the alert.
id: String
A unique identifier for the rule used to detect the alert.
severity: Option<CodeScanningAlertAppearedInBranchAlertRuleSeverity>
The severity of the alert.
Implementations§
Trait Implementations§
Source§impl Clone for CodeScanningAlertAppearedInBranchAlertRule
impl Clone for CodeScanningAlertAppearedInBranchAlertRule
Source§fn clone(&self) -> CodeScanningAlertAppearedInBranchAlertRule
fn clone(&self) -> CodeScanningAlertAppearedInBranchAlertRule
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 CodeScanningAlertAppearedInBranchAlertRule
impl<'de> Deserialize<'de> for CodeScanningAlertAppearedInBranchAlertRule
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<&CodeScanningAlertAppearedInBranchAlertRule> for CodeScanningAlertAppearedInBranchAlertRule
impl From<&CodeScanningAlertAppearedInBranchAlertRule> for CodeScanningAlertAppearedInBranchAlertRule
Source§fn from(value: &CodeScanningAlertAppearedInBranchAlertRule) -> Self
fn from(value: &CodeScanningAlertAppearedInBranchAlertRule) -> Self
Converts to this type from the input type.
Source§impl From<CodeScanningAlertAppearedInBranchAlertRule> for CodeScanningAlertAppearedInBranchAlertRule
impl From<CodeScanningAlertAppearedInBranchAlertRule> for CodeScanningAlertAppearedInBranchAlertRule
Source§fn from(value: CodeScanningAlertAppearedInBranchAlertRule) -> Self
fn from(value: CodeScanningAlertAppearedInBranchAlertRule) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CodeScanningAlertAppearedInBranchAlertRule
impl RefUnwindSafe for CodeScanningAlertAppearedInBranchAlertRule
impl Send for CodeScanningAlertAppearedInBranchAlertRule
impl Sync for CodeScanningAlertAppearedInBranchAlertRule
impl Unpin for CodeScanningAlertAppearedInBranchAlertRule
impl UnwindSafe for CodeScanningAlertAppearedInBranchAlertRule
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