use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateProtectionRuleRequest {
#[serde(rename = "rules")]
pub rules: Vec<models::ProtectionRuleKind>,
#[serde(rename = "bypass_groups")]
pub bypass_groups: Vec<String>,
#[serde(rename = "bypass_users")]
pub bypass_users: Vec<String>,
}
impl UpdateProtectionRuleRequest {
pub fn new(rules: Vec<models::ProtectionRuleKind>, bypass_groups: Vec<String>, bypass_users: Vec<String>) -> UpdateProtectionRuleRequest {
UpdateProtectionRuleRequest {
rules,
bypass_groups,
bypass_users,
}
}
}