#[non_exhaustive]pub struct ScheduleOptionsV2 {
pub schedule: Option<Schedule>,
/* private fields */
}Expand description
V2 options customizing different types of data transfer schedule. This field supports existing time-based and manual transfer schedule. Also supports Event-Driven transfer schedule. ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.schedule: Option<Schedule>Data transfer schedules.
Implementations§
Source§impl ScheduleOptionsV2
impl ScheduleOptionsV2
pub fn new() -> Self
Sourcepub fn set_schedule<T: Into<Option<Schedule>>>(self, v: T) -> Self
pub fn set_schedule<T: Into<Option<Schedule>>>(self, v: T) -> Self
Sets the value of schedule.
Note that all the setters affecting schedule are mutually
exclusive.
Sourcepub fn time_based_schedule(&self) -> Option<&Box<TimeBasedSchedule>>
pub fn time_based_schedule(&self) -> Option<&Box<TimeBasedSchedule>>
The value of schedule
if it holds a TimeBasedSchedule, None if the field is not set or
holds a different branch.
Sourcepub fn set_time_based_schedule<T: Into<Box<TimeBasedSchedule>>>(
self,
v: T,
) -> Self
pub fn set_time_based_schedule<T: Into<Box<TimeBasedSchedule>>>( self, v: T, ) -> Self
Sets the value of schedule
to hold a TimeBasedSchedule.
Note that all the setters affecting schedule are
mutually exclusive.
Sourcepub fn manual_schedule(&self) -> Option<&Box<ManualSchedule>>
pub fn manual_schedule(&self) -> Option<&Box<ManualSchedule>>
The value of schedule
if it holds a ManualSchedule, None if the field is not set or
holds a different branch.
Sourcepub fn set_manual_schedule<T: Into<Box<ManualSchedule>>>(self, v: T) -> Self
pub fn set_manual_schedule<T: Into<Box<ManualSchedule>>>(self, v: T) -> Self
Sets the value of schedule
to hold a ManualSchedule.
Note that all the setters affecting schedule are
mutually exclusive.
Sourcepub fn event_driven_schedule(&self) -> Option<&Box<EventDrivenSchedule>>
pub fn event_driven_schedule(&self) -> Option<&Box<EventDrivenSchedule>>
The value of schedule
if it holds a EventDrivenSchedule, None if the field is not set or
holds a different branch.
Sourcepub fn set_event_driven_schedule<T: Into<Box<EventDrivenSchedule>>>(
self,
v: T,
) -> Self
pub fn set_event_driven_schedule<T: Into<Box<EventDrivenSchedule>>>( self, v: T, ) -> Self
Sets the value of schedule
to hold a EventDrivenSchedule.
Note that all the setters affecting schedule are
mutually exclusive.
Trait Implementations§
Source§impl Clone for ScheduleOptionsV2
impl Clone for ScheduleOptionsV2
Source§fn clone(&self) -> ScheduleOptionsV2
fn clone(&self) -> ScheduleOptionsV2
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more