openapi_github/models/
security_and_analysis_dependabot_security_updates.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/// SecurityAndAnalysisDependabotSecurityUpdates : Enable or disable Dependabot security updates for the repository.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SecurityAndAnalysisDependabotSecurityUpdates {
17    /// The enablement status of Dependabot security updates for the repository.
18    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
19    pub status: Option<Status>,
20}
21
22impl SecurityAndAnalysisDependabotSecurityUpdates {
23    /// Enable or disable Dependabot security updates for the repository.
24    pub fn new() -> SecurityAndAnalysisDependabotSecurityUpdates {
25        SecurityAndAnalysisDependabotSecurityUpdates {
26            status: None,
27        }
28    }
29}
30/// The enablement status of Dependabot security updates for the repository.
31#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
32pub enum Status {
33    #[serde(rename = "enabled")]
34    Enabled,
35    #[serde(rename = "disabled")]
36    Disabled,
37}
38
39impl Default for Status {
40    fn default() -> Status {
41        Self::Enabled
42    }
43}
44