openapi-github 0.1.0

OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
Documentation
/*
 * GitHub's official OpenAPI spec + Octokit extension
 *
 * OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
 *
 * The version of the OpenAPI document: 16.6.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// CodeScanningAnalysisDeletion : Successful deletion of a code scanning analysis
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CodeScanningAnalysisDeletion {
    /// Next deletable analysis in chain, without last analysis deletion confirmation
    #[serde(rename = "next_analysis_url", deserialize_with = "Option::deserialize")]
    pub next_analysis_url: Option<String>,
    /// Next deletable analysis in chain, with last analysis deletion confirmation
    #[serde(rename = "confirm_delete_url", deserialize_with = "Option::deserialize")]
    pub confirm_delete_url: Option<String>,
}

impl CodeScanningAnalysisDeletion {
    /// Successful deletion of a code scanning analysis
    pub fn new(next_analysis_url: Option<String>, confirm_delete_url: Option<String>) -> CodeScanningAnalysisDeletion {
        CodeScanningAnalysisDeletion {
            next_analysis_url,
            confirm_delete_url,
        }
    }
}