openapi-github 0.1.0

OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
Documentation
/*
 * GitHub's official OpenAPI spec + Octokit extension
 *
 * OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
 *
 * The version of the OpenAPI document: 16.6.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// OidcCustomSubRepo : Actions OIDC subject customization for a repository
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct OidcCustomSubRepo {
    /// Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored.
    #[serde(rename = "use_default")]
    pub use_default: bool,
    /// Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.
    #[serde(rename = "include_claim_keys", skip_serializing_if = "Option::is_none")]
    pub include_claim_keys: Option<Vec<String>>,
}

impl OidcCustomSubRepo {
    /// Actions OIDC subject customization for a repository
    pub fn new(use_default: bool) -> OidcCustomSubRepo {
        OidcCustomSubRepo {
            use_default,
            include_claim_keys: None,
        }
    }
}