traq 0.1.5

⚠️ Community Driven ⚠️ traQ v3 API
Documentation
/*
 * traQ v3
 *
 * traQ v3 API
 *
 * The version of the OpenAPI document: 3.0
 *
 * Generated by: https://openapi-generator.tech
 */

/// BotEventResult : イベント配送結果

/// イベント配送結果
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum BotEventResult {
    #[serde(rename = "ok")]
    OK,
    #[serde(rename = "ng")]
    NG,
    #[serde(rename = "ne")]
    NetworkError,
    #[serde(rename = "dp")]
    Dropped,
}

impl ToString for BotEventResult {
    fn to_string(&self) -> String {
        match self {
            Self::OK => String::from("ok"),
            Self::NG => String::from("ng"),
            Self::NetworkError => String::from("ne"),
            Self::Dropped => String::from("dp"),
        }
    }
}

impl Default for BotEventResult {
    fn default() -> BotEventResult {
        Self::OK
    }
}