print_nanny_client/models/
remote_control_command_command_enum.rs

1/*
2 * print-nanny-client
3 *
4 * Official API client library for print-nanny.com
5 *
6 * The version of the OpenAPI document: 0.0.0
7 * Contact: leigh@print-nanny.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12/// 
13#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
14pub enum RemoteControlCommandCommandEnum {
15    #[serde(rename = "monitoring_stop")]
16    MonitoringStop,
17    #[serde(rename = "monitoring_start")]
18    MonitoringStart,
19    #[serde(rename = "print_start")]
20    PrintStart,
21    #[serde(rename = "print_stop")]
22    PrintStop,
23    #[serde(rename = "print_pause")]
24    PrintPause,
25    #[serde(rename = "print_resume")]
26    PrintResume,
27    #[serde(rename = "move_nozzle")]
28    MoveNozzle,
29    #[serde(rename = "connect_test_mqtt_pong")]
30    ConnectTestMqttPong,
31
32}
33
34impl ToString for RemoteControlCommandCommandEnum {
35    fn to_string(&self) -> String {
36        match self {
37            Self::MonitoringStop => String::from("monitoring_stop"),
38            Self::MonitoringStart => String::from("monitoring_start"),
39            Self::PrintStart => String::from("print_start"),
40            Self::PrintStop => String::from("print_stop"),
41            Self::PrintPause => String::from("print_pause"),
42            Self::PrintResume => String::from("print_resume"),
43            Self::MoveNozzle => String::from("move_nozzle"),
44            Self::ConnectTestMqttPong => String::from("connect_test_mqtt_pong"),
45        }
46    }
47}
48
49impl Default for RemoteControlCommandCommandEnum {
50    fn default() -> RemoteControlCommandCommandEnum {
51        Self::MonitoringStop
52    }
53}
54
55
56
57