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
 */

/// ChannelViewState : 閲覧状態

/// 閲覧状態
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ChannelViewState {
    #[serde(rename = "none")]
    None,
    #[serde(rename = "monitoring")]
    Monitoring,
    #[serde(rename = "editing")]
    Editing,
}

impl ToString for ChannelViewState {
    fn to_string(&self) -> String {
        match self {
            Self::None => String::from("none"),
            Self::Monitoring => String::from("monitoring"),
            Self::Editing => String::from("editing"),
        }
    }
}

impl Default for ChannelViewState {
    fn default() -> ChannelViewState {
        Self::None
    }
}