Skip to main content

authentik_client/models/
network_binding_enum.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.10.4
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14///
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum NetworkBindingEnum {
17    #[serde(rename = "no_binding")]
18    NoBinding,
19    #[serde(rename = "bind_asn")]
20    BindAsn,
21    #[serde(rename = "bind_asn_network")]
22    BindAsnNetwork,
23    #[serde(rename = "bind_asn_network_ip")]
24    BindAsnNetworkIp,
25}
26
27impl std::fmt::Display for NetworkBindingEnum {
28    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29        match self {
30            Self::NoBinding => write!(f, "no_binding"),
31            Self::BindAsn => write!(f, "bind_asn"),
32            Self::BindAsnNetwork => write!(f, "bind_asn_network"),
33            Self::BindAsnNetworkIp => write!(f, "bind_asn_network_ip"),
34        }
35    }
36}
37
38impl Default for NetworkBindingEnum {
39    fn default() -> NetworkBindingEnum {
40        Self::NoBinding
41    }
42}