pub struct WebhookCodeScanningAlertAppearedInBranchAlert {
pub created_at: String,
pub dismissed_at: Option<String>,
pub dismissed_by: Option<Box<User>>,
pub dismissed_reason: Option<DismissedReason>,
pub html_url: String,
pub most_recent_instance: Option<Option<Box<AlertInstance>>>,
pub number: i32,
pub rule: Box<WebhookCodeScanningAlertAppearedInBranchAlertRule>,
pub state: State,
pub tool: Box<WebhookCodeScanningAlertAppearedInBranchAlertTool>,
pub url: String,
}
Expand description
WebhookCodeScanningAlertAppearedInBranchAlert : The code scanning alert involved in the event.
Fields§
§created_at: String
The time that the alert was created in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
dismissed_at: Option<String>
The time that the alert was dismissed in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
dismissed_by: Option<Box<User>>
§dismissed_reason: Option<DismissedReason>
The reason for dismissing or closing the alert.
html_url: String
The GitHub URL of the alert resource.
most_recent_instance: Option<Option<Box<AlertInstance>>>
§number: i32
The code scanning alert number.
rule: Box<WebhookCodeScanningAlertAppearedInBranchAlertRule>
§state: State
State of a code scanning alert.
tool: Box<WebhookCodeScanningAlertAppearedInBranchAlertTool>
§url: String
Implementations§
Source§impl WebhookCodeScanningAlertAppearedInBranchAlert
impl WebhookCodeScanningAlertAppearedInBranchAlert
Sourcepub fn new(
created_at: String,
dismissed_at: Option<String>,
dismissed_by: Option<User>,
dismissed_reason: Option<DismissedReason>,
html_url: String,
number: i32,
rule: WebhookCodeScanningAlertAppearedInBranchAlertRule,
state: State,
tool: WebhookCodeScanningAlertAppearedInBranchAlertTool,
url: String,
) -> WebhookCodeScanningAlertAppearedInBranchAlert
pub fn new( created_at: String, dismissed_at: Option<String>, dismissed_by: Option<User>, dismissed_reason: Option<DismissedReason>, html_url: String, number: i32, rule: WebhookCodeScanningAlertAppearedInBranchAlertRule, state: State, tool: WebhookCodeScanningAlertAppearedInBranchAlertTool, url: String, ) -> WebhookCodeScanningAlertAppearedInBranchAlert
The code scanning alert involved in the event.
Trait Implementations§
Source§impl Clone for WebhookCodeScanningAlertAppearedInBranchAlert
impl Clone for WebhookCodeScanningAlertAppearedInBranchAlert
Source§fn clone(&self) -> WebhookCodeScanningAlertAppearedInBranchAlert
fn clone(&self) -> WebhookCodeScanningAlertAppearedInBranchAlert
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 Default for WebhookCodeScanningAlertAppearedInBranchAlert
impl Default for WebhookCodeScanningAlertAppearedInBranchAlert
Source§fn default() -> WebhookCodeScanningAlertAppearedInBranchAlert
fn default() -> WebhookCodeScanningAlertAppearedInBranchAlert
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookCodeScanningAlertAppearedInBranchAlert
impl<'de> Deserialize<'de> for WebhookCodeScanningAlertAppearedInBranchAlert
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 PartialEq for WebhookCodeScanningAlertAppearedInBranchAlert
impl PartialEq for WebhookCodeScanningAlertAppearedInBranchAlert
Source§fn eq(&self, other: &WebhookCodeScanningAlertAppearedInBranchAlert) -> bool
fn eq(&self, other: &WebhookCodeScanningAlertAppearedInBranchAlert) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for WebhookCodeScanningAlertAppearedInBranchAlert
Auto Trait Implementations§
impl Freeze for WebhookCodeScanningAlertAppearedInBranchAlert
impl RefUnwindSafe for WebhookCodeScanningAlertAppearedInBranchAlert
impl Send for WebhookCodeScanningAlertAppearedInBranchAlert
impl Sync for WebhookCodeScanningAlertAppearedInBranchAlert
impl Unpin for WebhookCodeScanningAlertAppearedInBranchAlert
impl UnwindSafe for WebhookCodeScanningAlertAppearedInBranchAlert
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