Skip to main content

nautobot_openapi/models/
controller_capabilities_inner.rs

1/*
2 * API Documentation
3 *
4 * Source of truth and network automation platform
5 *
6 * The version of the OpenAPI document: 3.1.0 (3.1)
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct ControllerCapabilitiesInner {
13    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
14    pub value: Option<Value>,
15    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
16    pub label: Option<Label>,
17}
18
19impl ControllerCapabilitiesInner {
20    pub fn new() -> ControllerCapabilitiesInner {
21        ControllerCapabilitiesInner {
22            value: None,
23            label: None,
24        }
25    }
26}
27
28///
29#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
30pub enum Value {
31    #[serde(rename = "wireless")]
32    Wireless,
33}
34
35impl Default for Value {
36    fn default() -> Value {
37        Self::Wireless
38    }
39}
40///
41#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
42pub enum Label {
43    #[serde(rename = "Wireless")]
44    Wireless,
45}
46
47impl Default for Label {
48    fn default() -> Label {
49        Self::Wireless
50    }
51}