openapi_github/models/
webhook_branch_protection_rule_edited_changes.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/// WebhookBranchProtectionRuleEditedChanges : If the action was `edited`, the changes to the rule.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct WebhookBranchProtectionRuleEditedChanges {
17    #[serde(rename = "admin_enforced", skip_serializing_if = "Option::is_none")]
18    pub admin_enforced: Option<Box<models::WebhookBranchProtectionRuleEditedChangesAdminEnforced>>,
19    #[serde(rename = "authorized_actor_names", skip_serializing_if = "Option::is_none")]
20    pub authorized_actor_names: Option<Box<models::WebhookBranchProtectionRuleEditedChangesAuthorizedActorNames>>,
21    #[serde(rename = "authorized_actors_only", skip_serializing_if = "Option::is_none")]
22    pub authorized_actors_only: Option<Box<models::WebhookBranchProtectionRuleEditedChangesAdminEnforced>>,
23    #[serde(rename = "authorized_dismissal_actors_only", skip_serializing_if = "Option::is_none")]
24    pub authorized_dismissal_actors_only: Option<Box<models::WebhookBranchProtectionRuleEditedChangesAdminEnforced>>,
25    #[serde(rename = "linear_history_requirement_enforcement_level", skip_serializing_if = "Option::is_none")]
26    pub linear_history_requirement_enforcement_level: Option<Box<models::WebhookBranchProtectionRuleEditedChangesLinearHistoryRequirementEnforcementLevel>>,
27    #[serde(rename = "required_status_checks", skip_serializing_if = "Option::is_none")]
28    pub required_status_checks: Option<Box<models::WebhookBranchProtectionRuleEditedChangesAuthorizedActorNames>>,
29    #[serde(rename = "required_status_checks_enforcement_level", skip_serializing_if = "Option::is_none")]
30    pub required_status_checks_enforcement_level: Option<Box<models::WebhookBranchProtectionRuleEditedChangesLinearHistoryRequirementEnforcementLevel>>,
31}
32
33impl WebhookBranchProtectionRuleEditedChanges {
34    /// If the action was `edited`, the changes to the rule.
35    pub fn new() -> WebhookBranchProtectionRuleEditedChanges {
36        WebhookBranchProtectionRuleEditedChanges {
37            admin_enforced: None,
38            authorized_actor_names: None,
39            authorized_actors_only: None,
40            authorized_dismissal_actors_only: None,
41            linear_history_requirement_enforcement_level: None,
42            required_status_checks: None,
43            required_status_checks_enforcement_level: None,
44        }
45    }
46}
47