use crate::options::RateLimitRule;
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct PluginRateLimitRule {
pub path: String,
pub rule: RateLimitRule,
}
impl PluginRateLimitRule {
pub fn new(path: impl Into<String>, rule: RateLimitRule) -> Self {
Self {
path: path.into(),
rule,
}
}
}