/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 3.1.0 (3.1)
 *
 * Generated by: https://openapi-generator.tech
 */

///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum JobExecutionTypeIntervalChoices {
    #[serde(rename = "immediately")]
    Immediately,
    #[serde(rename = "future")]
    Future,
    #[serde(rename = "hourly")]
    Hourly,
    #[serde(rename = "daily")]
    Daily,
    #[serde(rename = "weekly")]
    Weekly,
    #[serde(rename = "custom")]
    Custom,
}

impl ToString for JobExecutionTypeIntervalChoices {
    fn to_string(&self) -> String {
        match self {
            Self::Immediately => String::from("immediately"),
            Self::Future => String::from("future"),
            Self::Hourly => String::from("hourly"),
            Self::Daily => String::from("daily"),
            Self::Weekly => String::from("weekly"),
            Self::Custom => String::from("custom"),
        }
    }
}

impl Default for JobExecutionTypeIntervalChoices {
    fn default() -> JobExecutionTypeIntervalChoices {
        Self::Immediately
    }
}
