openapi_github/models/check_automated_security_fixes.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/// CheckAutomatedSecurityFixes : Check Automated Security Fixes
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CheckAutomatedSecurityFixes {
17 /// Whether automated security fixes are enabled for the repository.
18 #[serde(rename = "enabled")]
19 pub enabled: bool,
20 /// Whether automated security fixes are paused for the repository.
21 #[serde(rename = "paused")]
22 pub paused: bool,
23}
24
25impl CheckAutomatedSecurityFixes {
26 /// Check Automated Security Fixes
27 pub fn new(enabled: bool, paused: bool) -> CheckAutomatedSecurityFixes {
28 CheckAutomatedSecurityFixes {
29 enabled,
30 paused,
31 }
32 }
33}
34