/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.6
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PreviewScheduleRequest {
    #[serde(rename = "schedule")]
    pub schedule: String,
    #[serde(rename = "timezone")]
    pub timezone: String,
    #[serde(rename = "cron_version", skip_serializing_if = "Option::is_none")]
    pub cron_version: Option<String>,
}

impl PreviewScheduleRequest {
    pub fn new(schedule: String, timezone: String) -> PreviewScheduleRequest {
        PreviewScheduleRequest {
            schedule,
            timezone,
            cron_version: None,
        }
    }
}

