pub enum CodeScanningAlertEvent {
AppearedInBranch(CodeScanningAlertAppearedInBranch),
ClosedByUser(CodeScanningAlertClosedByUser),
Created(CodeScanningAlertCreated),
Fixed(CodeScanningAlertFixed),
Reopened(CodeScanningAlertReopened),
ReopenedByUser(CodeScanningAlertReopenedByUser),
}
Expand description
CodeScanningAlertEvent
JSON schema
{
"oneOf": [
{
"$ref": "#/definitions/code_scanning_alert$appeared_in_branch"
},
{
"$ref": "#/definitions/code_scanning_alert$closed_by_user"
},
{
"$ref": "#/definitions/code_scanning_alert$created"
},
{
"$ref": "#/definitions/code_scanning_alert$fixed"
},
{
"$ref": "#/definitions/code_scanning_alert$reopened"
},
{
"$ref": "#/definitions/code_scanning_alert$reopened_by_user"
}
]
}
Variants§
AppearedInBranch(CodeScanningAlertAppearedInBranch)
ClosedByUser(CodeScanningAlertClosedByUser)
Created(CodeScanningAlertCreated)
Fixed(CodeScanningAlertFixed)
Reopened(CodeScanningAlertReopened)
ReopenedByUser(CodeScanningAlertReopenedByUser)
Trait Implementations§
Source§impl Clone for CodeScanningAlertEvent
impl Clone for CodeScanningAlertEvent
Source§fn clone(&self) -> CodeScanningAlertEvent
fn clone(&self) -> CodeScanningAlertEvent
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 CodeScanningAlertEvent
impl Debug for CodeScanningAlertEvent
Source§impl<'de> Deserialize<'de> for CodeScanningAlertEvent
impl<'de> Deserialize<'de> for CodeScanningAlertEvent
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<&CodeScanningAlertEvent> for CodeScanningAlertEvent
impl From<&CodeScanningAlertEvent> for CodeScanningAlertEvent
Source§fn from(value: &CodeScanningAlertEvent) -> Self
fn from(value: &CodeScanningAlertEvent) -> Self
Converts to this type from the input type.
Source§impl From<CodeScanningAlertAppearedInBranch> for CodeScanningAlertEvent
impl From<CodeScanningAlertAppearedInBranch> for CodeScanningAlertEvent
Source§fn from(value: CodeScanningAlertAppearedInBranch) -> Self
fn from(value: CodeScanningAlertAppearedInBranch) -> Self
Converts to this type from the input type.
Source§impl From<CodeScanningAlertClosedByUser> for CodeScanningAlertEvent
impl From<CodeScanningAlertClosedByUser> for CodeScanningAlertEvent
Source§fn from(value: CodeScanningAlertClosedByUser) -> Self
fn from(value: CodeScanningAlertClosedByUser) -> Self
Converts to this type from the input type.
Source§impl From<CodeScanningAlertCreated> for CodeScanningAlertEvent
impl From<CodeScanningAlertCreated> for CodeScanningAlertEvent
Source§fn from(value: CodeScanningAlertCreated) -> Self
fn from(value: CodeScanningAlertCreated) -> Self
Converts to this type from the input type.
Source§impl From<CodeScanningAlertFixed> for CodeScanningAlertEvent
impl From<CodeScanningAlertFixed> for CodeScanningAlertEvent
Source§fn from(value: CodeScanningAlertFixed) -> Self
fn from(value: CodeScanningAlertFixed) -> Self
Converts to this type from the input type.
Source§impl From<CodeScanningAlertReopened> for CodeScanningAlertEvent
impl From<CodeScanningAlertReopened> for CodeScanningAlertEvent
Source§fn from(value: CodeScanningAlertReopened) -> Self
fn from(value: CodeScanningAlertReopened) -> Self
Converts to this type from the input type.
Source§impl From<CodeScanningAlertReopenedByUser> for CodeScanningAlertEvent
impl From<CodeScanningAlertReopenedByUser> for CodeScanningAlertEvent
Source§fn from(value: CodeScanningAlertReopenedByUser) -> Self
fn from(value: CodeScanningAlertReopenedByUser) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CodeScanningAlertEvent
impl RefUnwindSafe for CodeScanningAlertEvent
impl Send for CodeScanningAlertEvent
impl Sync for CodeScanningAlertEvent
impl Unpin for CodeScanningAlertEvent
impl UnwindSafe for CodeScanningAlertEvent
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