openapi_github/models/
repos_get_all_deployment_protection_rules_200_response.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ReposGetAllDeploymentProtectionRules200Response {
16 #[serde(rename = "total_count", skip_serializing_if = "Option::is_none")]
18 pub total_count: Option<i32>,
19 #[serde(rename = "custom_deployment_protection_rules", skip_serializing_if = "Option::is_none")]
20 pub custom_deployment_protection_rules: Option<Vec<models::DeploymentProtectionRule>>,
21}
22
23impl ReposGetAllDeploymentProtectionRules200Response {
24 pub fn new() -> ReposGetAllDeploymentProtectionRules200Response {
25 ReposGetAllDeploymentProtectionRules200Response {
26 total_count: None,
27 custom_deployment_protection_rules: None,
28 }
29 }
30}
31