pub struct CodeScanningAlert {Show 15 fields
pub number: i32,
pub created_at: String,
pub updated_at: Option<String>,
pub url: String,
pub html_url: String,
pub instances_url: String,
pub state: CodeScanningAlertState,
pub fixed_at: Option<Option<String>>,
pub dismissed_by: Option<Box<NullableSimpleUser>>,
pub dismissed_at: Option<String>,
pub dismissed_reason: Option<CodeScanningAlertDismissedReason>,
pub dismissed_comment: Option<Option<String>>,
pub rule: Box<CodeScanningAlertRule>,
pub tool: Box<CodeScanningAnalysisTool>,
pub most_recent_instance: Box<CodeScanningAlertInstance>,
}
Fields§
§number: i32
The security alert number.
created_at: String
The time that the alert was created in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
updated_at: Option<String>
The time that the alert was last updated in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
url: String
The REST API URL of the alert resource.
html_url: String
The GitHub URL of the alert resource.
instances_url: String
The REST API URL for fetching the list of instances for an alert.
state: CodeScanningAlertState
§fixed_at: Option<Option<String>>
The time that the alert was no longer detected and was considered fixed in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
dismissed_by: Option<Box<NullableSimpleUser>>
§dismissed_at: Option<String>
The time that the alert was dismissed in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
dismissed_reason: Option<CodeScanningAlertDismissedReason>
§dismissed_comment: Option<Option<String>>
The dismissal comment associated with the dismissal of the alert.
rule: Box<CodeScanningAlertRule>
§tool: Box<CodeScanningAnalysisTool>
§most_recent_instance: Box<CodeScanningAlertInstance>
Implementations§
Source§impl CodeScanningAlert
impl CodeScanningAlert
pub fn new( number: i32, created_at: String, url: String, html_url: String, instances_url: String, state: CodeScanningAlertState, dismissed_by: Option<NullableSimpleUser>, dismissed_at: Option<String>, dismissed_reason: Option<CodeScanningAlertDismissedReason>, rule: CodeScanningAlertRule, tool: CodeScanningAnalysisTool, most_recent_instance: CodeScanningAlertInstance, ) -> CodeScanningAlert
Trait Implementations§
Source§impl Clone for CodeScanningAlert
impl Clone for CodeScanningAlert
Source§fn clone(&self) -> CodeScanningAlert
fn clone(&self) -> CodeScanningAlert
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 CodeScanningAlert
impl Debug for CodeScanningAlert
Source§impl Default for CodeScanningAlert
impl Default for CodeScanningAlert
Source§fn default() -> CodeScanningAlert
fn default() -> CodeScanningAlert
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CodeScanningAlert
impl<'de> Deserialize<'de> for CodeScanningAlert
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 CodeScanningAlert
impl PartialEq for CodeScanningAlert
Source§impl Serialize for CodeScanningAlert
impl Serialize for CodeScanningAlert
impl StructuralPartialEq for CodeScanningAlert
Auto Trait Implementations§
impl Freeze for CodeScanningAlert
impl RefUnwindSafe for CodeScanningAlert
impl Send for CodeScanningAlert
impl Sync for CodeScanningAlert
impl Unpin for CodeScanningAlert
impl UnwindSafe for CodeScanningAlert
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