fips 1.0.1

A powerful mock server supported by a plugin system
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use schemars::JsonSchema;
use serde::{Serialize, Deserialize};
use crate::configuration::rule::Rule;

#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
pub enum RuleSet {
    Rule(Rule),
}

impl RuleSet {
    pub fn into_inner(&self) -> &Rule {
        match self {
            RuleSet::Rule(rule) => rule,
        }
    }
}