windmill_api/models/
mqtt_qo_s.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.555.2
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// 
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum MqttQoS {
17    #[serde(rename = "qos0")]
18    Qos0,
19    #[serde(rename = "qos1")]
20    Qos1,
21    #[serde(rename = "qos2")]
22    Qos2,
23
24}
25
26impl std::fmt::Display for MqttQoS {
27    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
28        match self {
29            Self::Qos0 => write!(f, "qos0"),
30            Self::Qos1 => write!(f, "qos1"),
31            Self::Qos2 => write!(f, "qos2"),
32        }
33    }
34}
35
36impl Default for MqttQoS {
37    fn default() -> MqttQoS {
38        Self::Qos0
39    }
40}
41