/*
* 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};
/// OrgRulesetConditions : Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.
/// Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum OrgRulesetConditions {
RepositoryNameAndRefName(Box<models::RepositoryNameAndRefName>),
RepositoryIdAndRefName(Box<models::RepositoryIdAndRefName>),
RepositoryPropertyAndRefName(Box<models::RepositoryPropertyAndRefName>),
}
impl Default for OrgRulesetConditions {
fn default() -> Self {
Self::RepositoryNameAndRefName(Default::default())
}
}