nautobot_openapi/models/face_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 FaceEnum {
14 #[serde(rename = "front")]
15 Front,
16 #[serde(rename = "rear")]
17 Rear,
18}
19
20impl ToString for FaceEnum {
21 fn to_string(&self) -> String {
22 match self {
23 Self::Front => String::from("front"),
24 Self::Rear => String::from("rear"),
25 }
26 }
27}
28
29impl Default for FaceEnum {
30 fn default() -> FaceEnum {
31 Self::Front
32 }
33}