lattice_sdk/api/types/
schedule.rs

1pub use crate::prelude::*;
2
3/// A Schedule associated with this entity
4#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash)]
5pub struct Schedule {
6    /// expression that represents this schedule's "ON" state
7    #[serde(skip_serializing_if = "Option::is_none")]
8    pub windows: Option<Vec<CronWindow>>,
9    /// A unique identifier for this schedule.
10    #[serde(rename = "scheduleId")]
11    #[serde(skip_serializing_if = "Option::is_none")]
12    pub schedule_id: Option<String>,
13    /// The schedule type
14    #[serde(rename = "scheduleType")]
15    #[serde(skip_serializing_if = "Option::is_none")]
16    pub schedule_type: Option<ScheduleScheduleType>,
17}