windmill-api 1.684.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.684.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum MqttQoS {
    #[serde(rename = "qos0")]
    Qos0,
    #[serde(rename = "qos1")]
    Qos1,
    #[serde(rename = "qos2")]
    Qos2,

}

impl std::fmt::Display for MqttQoS {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Qos0 => write!(f, "qos0"),
            Self::Qos1 => write!(f, "qos1"),
            Self::Qos2 => write!(f, "qos2"),
        }
    }
}

impl Default for MqttQoS {
    fn default() -> MqttQoS {
        Self::Qos0
    }
}