nautobot_openapi/models/power_path_enum.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///
12#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
13pub enum PowerPathEnum {
14 #[serde(rename = "a")]
15 A,
16 #[serde(rename = "b")]
17 B,
18}
19
20impl ToString for PowerPathEnum {
21 fn to_string(&self) -> String {
22 match self {
23 Self::A => String::from("a"),
24 Self::B => String::from("b"),
25 }
26 }
27}
28
29impl Default for PowerPathEnum {
30 fn default() -> PowerPathEnum {
31 Self::A
32 }
33}