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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SelectedActions {
    /// Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.
    #[serde(rename = "github_owned_allowed", skip_serializing_if = "Option::is_none")]
    pub github_owned_allowed: Option<bool>,
    /// Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators.
    #[serde(rename = "verified_allowed", skip_serializing_if = "Option::is_none")]
    pub verified_allowed: Option<bool>,
    /// Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/_*`.  **Note**: The `patterns_allowed` setting only applies to public repositories.
    #[serde(rename = "patterns_allowed", skip_serializing_if = "Option::is_none")]
    pub patterns_allowed: Option<Vec<String>>,
}

impl SelectedActions {
    pub fn new() -> SelectedActions {
        SelectedActions {
            github_owned_allowed: None,
            verified_allowed: None,
            patterns_allowed: None,
        }
    }
}