openapi_github/models/
oidc_custom_sub.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/// OidcCustomSub : Actions OIDC Subject customization
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct OidcCustomSub {
17    /// Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.
18    #[serde(rename = "include_claim_keys")]
19    pub include_claim_keys: Vec<String>,
20}
21
22impl OidcCustomSub {
23    /// Actions OIDC Subject customization
24    pub fn new(include_claim_keys: Vec<String>) -> OidcCustomSub {
25        OidcCustomSub {
26            include_claim_keys,
27        }
28    }
29}
30