pub struct ScheduleUpdate {
pub name: Option<String>,
pub lifetime: Option<Duration>,
pub max_occurrences: Option<Int64>,
pub initial_start_time: Option<DateTimeOffset>,
pub recurrence_interval: Option<Duration>,
pub enabled_days_of_week: Option<Vec<DayOfWeek>>,
pub enabled_days_of_month: Option<Vec<Int64>>,
pub enabled_months_of_year: Option<Vec<MonthOfYear>>,
pub enabled_intervals: Option<Vec<String>>,
}Expand description
Update struct corresponding to Schedule
Fields§
§name: Option<String>§lifetime: Option<Duration>§max_occurrences: Option<Int64>§initial_start_time: Option<DateTimeOffset>§recurrence_interval: Option<Duration>§enabled_days_of_week: Option<Vec<DayOfWeek>>§enabled_days_of_month: Option<Vec<Int64>>§enabled_months_of_year: Option<Vec<MonthOfYear>>§enabled_intervals: Option<Vec<String>>Implementations§
Source§impl ScheduleUpdate
impl ScheduleUpdate
pub fn builder() -> Self
pub const fn build(self) -> Self
pub fn with_name(self, v: String) -> Self
pub fn with_lifetime(self, v: Duration) -> Self
pub fn with_max_occurrences(self, v: Int64) -> Self
pub fn with_initial_start_time(self, v: DateTimeOffset) -> Self
pub fn with_recurrence_interval(self, v: Duration) -> Self
pub fn with_enabled_days_of_week(self, v: Vec<DayOfWeek>) -> Self
pub fn with_enabled_days_of_month(self, v: Vec<Int64>) -> Self
pub fn with_enabled_months_of_year(self, v: Vec<MonthOfYear>) -> Self
pub fn with_enabled_intervals(self, v: Vec<String>) -> Self
Trait Implementations§
Source§impl Debug for ScheduleUpdate
impl Debug for ScheduleUpdate
Source§impl Default for ScheduleUpdate
impl Default for ScheduleUpdate
Source§fn default() -> ScheduleUpdate
fn default() -> ScheduleUpdate
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScheduleUpdate
impl RefUnwindSafe for ScheduleUpdate
impl Send for ScheduleUpdate
impl Sync for ScheduleUpdate
impl Unpin for ScheduleUpdate
impl UnsafeUnpin for ScheduleUpdate
impl UnwindSafe for ScheduleUpdate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more