openapi_github/models/
security_and_analysis.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SecurityAndAnalysis {
16    #[serde(rename = "advanced_security", skip_serializing_if = "Option::is_none")]
17    pub advanced_security: Option<Box<models::SecurityAndAnalysisAdvancedSecurity>>,
18    #[serde(rename = "dependabot_security_updates", skip_serializing_if = "Option::is_none")]
19    pub dependabot_security_updates: Option<Box<models::SecurityAndAnalysisDependabotSecurityUpdates>>,
20    #[serde(rename = "secret_scanning", skip_serializing_if = "Option::is_none")]
21    pub secret_scanning: Option<Box<models::SecurityAndAnalysisAdvancedSecurity>>,
22    #[serde(rename = "secret_scanning_push_protection", skip_serializing_if = "Option::is_none")]
23    pub secret_scanning_push_protection: Option<Box<models::SecurityAndAnalysisAdvancedSecurity>>,
24}
25
26impl SecurityAndAnalysis {
27    pub fn new() -> SecurityAndAnalysis {
28        SecurityAndAnalysis {
29            advanced_security: None,
30            dependabot_security_updates: None,
31            secret_scanning: None,
32            secret_scanning_push_protection: None,
33        }
34    }
35}
36