39 lines
911 B
Rust
39 lines
911 B
Rust
/*
|
|
* SCP (Server Control Panel) REST API
|
|
*
|
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
*
|
|
* The version of the OpenAPI document: 2025.1218.164029
|
|
*
|
|
* Generated by: https://openapi-generator.tech
|
|
*/
|
|
|
|
use crate::models;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
///
|
|
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
|
|
pub enum ImplicitRule {
|
|
#[serde(rename = "ACCEPT_ALL")]
|
|
AcceptAll,
|
|
#[serde(rename = "DROP_ALL")]
|
|
DropAll,
|
|
|
|
}
|
|
|
|
impl std::fmt::Display for ImplicitRule {
|
|
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
|
match self {
|
|
Self::AcceptAll => write!(f, "ACCEPT_ALL"),
|
|
Self::DropAll => write!(f, "DROP_ALL"),
|
|
}
|
|
}
|
|
}
|
|
|
|
impl Default for ImplicitRule {
|
|
fn default() -> ImplicitRule {
|
|
Self::AcceptAll
|
|
}
|
|
}
|
|
|