use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RepositoryPropertyAndRefName {
#[serde(rename = "ref_name", skip_serializing_if = "Option::is_none")]
pub ref_name: Option<Box<models::RepositoryRulesetConditionsRefName>>,
#[serde(rename = "repository_property")]
pub repository_property: Box<models::RepositoryRulesetConditionsRepositoryPropertyTargetRepositoryProperty>,
}
impl RepositoryPropertyAndRefName {
pub fn new(repository_property: models::RepositoryRulesetConditionsRepositoryPropertyTargetRepositoryProperty) -> RepositoryPropertyAndRefName {
RepositoryPropertyAndRefName {
ref_name: None,
repository_property: Box::new(repository_property),
}
}
}