fusionauth_rust_client/models/
ip_access_control_entry_action.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum IpAccessControlEntryAction {
18 #[serde(rename = "Allow")]
19 Allow,
20 #[serde(rename = "Block")]
21 Block,
22
23}
24
25impl std::fmt::Display for IpAccessControlEntryAction {
26 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27 match self {
28 Self::Allow => write!(f, "Allow"),
29 Self::Block => write!(f, "Block"),
30 }
31 }
32}
33
34impl Default for IpAccessControlEntryAction {
35 fn default() -> IpAccessControlEntryAction {
36 Self::Allow
37 }
38}
39