openapi_github/models/
repos_update_status_check_protection_request.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 ReposUpdateStatusCheckProtectionRequest {
16    /// Require branches to be up to date before merging.
17    #[serde(rename = "strict", skip_serializing_if = "Option::is_none")]
18    pub strict: Option<bool>,
19    /// **Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control. 
20    #[serde(rename = "contexts", skip_serializing_if = "Option::is_none")]
21    pub contexts: Option<Vec<String>>,
22    /// The list of status checks to require in order to merge into this branch.
23    #[serde(rename = "checks", skip_serializing_if = "Option::is_none")]
24    pub checks: Option<Vec<models::ReposUpdateBranchProtectionRequestRequiredStatusChecksChecksInner>>,
25}
26
27impl ReposUpdateStatusCheckProtectionRequest {
28    pub fn new() -> ReposUpdateStatusCheckProtectionRequest {
29        ReposUpdateStatusCheckProtectionRequest {
30            strict: None,
31            contexts: None,
32            checks: None,
33        }
34    }
35}
36