redfish_codegen/models/schedule/v1_0_3/
schedule.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// Schedule a series of occurrences.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct Schedule {
10    /// Days of the month when scheduled occurrences are enabled.  `0` indicates that every day of the month is enabled.
11    #[serde(rename = "EnabledDaysOfMonth")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub enabled_days_of_month: Option<Vec<i64>>,
14    /// Days of the week when scheduled occurrences are enabled, for enabled days of the month and months of the year.  If not present, all days of the week are enabled.
15    #[serde(rename = "EnabledDaysOfWeek")]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub enabled_days_of_week: Option<Vec<models::schedule::v1_0_3::DayOfWeek>>,
18    /// The months of the year when scheduled occurrences are enabled.  If not present, all months of the year are enabled.
19    #[serde(rename = "EnabledMonthsOfYear")]
20    #[serde(default, skip_serializing_if = "Option::is_none")]
21    pub enabled_months_of_year: Option<Vec<models::schedule::v1_0_3::MonthOfYear>>,
22    /// The date and time when the initial occurrence is scheduled to occur.
23    #[serde(rename = "InitialStartTime")]
24    #[serde(default, skip_serializing_if = "Option::is_none")]
25    pub initial_start_time: Option<String>,
26    /// The time after provisioning when the schedule as a whole expires.
27    #[serde(rename = "Lifetime")]
28    #[serde(default, skip_serializing_if = "Option::is_none")]
29    pub lifetime: Option<String>,
30    /// The maximum number of scheduled occurrences.
31    #[serde(rename = "MaxOccurrences")]
32    #[serde(default, skip_serializing_if = "Option::is_none")]
33    pub max_occurrences: Option<i64>,
34    /// The schedule name.
35    #[serde(rename = "Name")]
36    #[serde(default, skip_serializing_if = "Option::is_none")]
37    pub name: Option<String>,
38    /// The duration between consecutive occurrences.
39    #[serde(rename = "RecurrenceInterval")]
40    #[serde(default, skip_serializing_if = "Option::is_none")]
41    pub recurrence_interval: Option<String>,
42}
43
44impl crate::Metadata<'static> for Schedule {
45    const JSON_SCHEMA: &'static str = "Schedule.v1_0_3.json";
46}