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