netbox_openapi/models/
brief_circuit_group_assignment_serializer__priority.rs

1/*
2 * NetBox REST API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 4.4.2-Docker-3.4.1 (4.4)
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct BriefCircuitGroupAssignmentSerializerPriority {
13    /// * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive
14    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
15    pub value: Option<Value>,
16    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
17    pub label: Option<Label>,
18}
19
20impl BriefCircuitGroupAssignmentSerializerPriority {
21    pub fn new() -> BriefCircuitGroupAssignmentSerializerPriority {
22        BriefCircuitGroupAssignmentSerializerPriority {
23            value: None,
24            label: None,
25        }
26    }
27}
28
29/// * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive
30#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
31pub enum Value {
32    #[serde(rename = "primary")]
33    Primary,
34    #[serde(rename = "secondary")]
35    Secondary,
36    #[serde(rename = "tertiary")]
37    Tertiary,
38    #[serde(rename = "inactive")]
39    Inactive,
40    #[serde(rename = "")]
41    Empty,
42}
43
44impl Default for Value {
45    fn default() -> Value {
46        Self::Primary
47    }
48}
49///
50#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
51pub enum Label {
52    #[serde(rename = "Primary")]
53    Primary,
54    #[serde(rename = "Secondary")]
55    Secondary,
56    #[serde(rename = "Tertiary")]
57    Tertiary,
58    #[serde(rename = "Inactive")]
59    Inactive,
60}
61
62impl Default for Label {
63    fn default() -> Label {
64        Self::Primary
65    }
66}