print_nanny_client/models/
event_source_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 EventSourceEnum {
15    #[serde(rename = "octoprint")]
16    Octoprint,
17    #[serde(rename = "plugin_octoprint_nanny")]
18    PluginOctoprintNanny,
19    #[serde(rename = "remote_command")]
20    RemoteCommand,
21
22}
23
24impl ToString for EventSourceEnum {
25    fn to_string(&self) -> String {
26        match self {
27            Self::Octoprint => String::from("octoprint"),
28            Self::PluginOctoprintNanny => String::from("plugin_octoprint_nanny"),
29            Self::RemoteCommand => String::from("remote_command"),
30        }
31    }
32}
33
34impl Default for EventSourceEnum {
35    fn default() -> EventSourceEnum {
36        Self::Octoprint
37    }
38}
39
40
41
42