#[non_exhaustive]pub struct ScheduleOptions {
pub disable_auto_scheduling: bool,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
/* private fields */
}Expand description
Options customizing the data transfer 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.disable_auto_scheduling: boolIf true, automatic scheduling of data transfer runs for this configuration will be disabled. The runs can be started on ad-hoc basis using StartManualTransferRuns API. When automatic scheduling is disabled, the TransferConfig.schedule field will be ignored.
start_time: Option<Timestamp>Specifies time to start scheduling transfer runs. The first run will be scheduled at or after the start time according to a recurrence pattern defined in the schedule string. The start time can be changed at any moment. The time when a data transfer can be triggered manually is not limited by this option.
end_time: Option<Timestamp>Defines time to stop scheduling transfer runs. A transfer run cannot be scheduled at or after the end time. The end time can be changed at any moment. The time when a data transfer can be triggered manually is not limited by this option.
Implementations§
Source§impl ScheduleOptions
impl ScheduleOptions
pub fn new() -> Self
Sourcepub fn set_disable_auto_scheduling<T: Into<bool>>(self, v: T) -> Self
pub fn set_disable_auto_scheduling<T: Into<bool>>(self, v: T) -> Self
Sets the value of disable_auto_scheduling.
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sets the value of end_time.
Trait Implementations§
Source§impl Clone for ScheduleOptions
impl Clone for ScheduleOptions
Source§fn clone(&self) -> ScheduleOptions
fn clone(&self) -> ScheduleOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more