openapi_github/models/
code_scanning_analysis_deletion.rs

1/*
2 * GitHub's official OpenAPI spec + Octokit extension
3 *
4 * OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
5 *
6 * The version of the OpenAPI document: 16.6.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// CodeScanningAnalysisDeletion : Successful deletion of a code scanning analysis
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CodeScanningAnalysisDeletion {
17    /// Next deletable analysis in chain, without last analysis deletion confirmation
18    #[serde(rename = "next_analysis_url", deserialize_with = "Option::deserialize")]
19    pub next_analysis_url: Option<String>,
20    /// Next deletable analysis in chain, with last analysis deletion confirmation
21    #[serde(rename = "confirm_delete_url", deserialize_with = "Option::deserialize")]
22    pub confirm_delete_url: Option<String>,
23}
24
25impl CodeScanningAnalysisDeletion {
26    /// Successful deletion of a code scanning analysis
27    pub fn new(next_analysis_url: Option<String>, confirm_delete_url: Option<String>) -> CodeScanningAnalysisDeletion {
28        CodeScanningAnalysisDeletion {
29            next_analysis_url,
30            confirm_delete_url,
31        }
32    }
33}
34