#[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.
§Example
use google_cloud_bigquery_datatransfer_v1::model::TimeBasedSchedule;
let x = ScheduleOptionsV2::new().set_schedule(Some(
google_cloud_bigquery_datatransfer_v1::model::schedule_options_v_2::Schedule::TimeBasedSchedule(TimeBasedSchedule::default().into())));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.
§Example
use google_cloud_bigquery_datatransfer_v1::model::TimeBasedSchedule;
let x = ScheduleOptionsV2::new().set_time_based_schedule(TimeBasedSchedule::default()/* use setters */);
assert!(x.time_based_schedule().is_some());
assert!(x.manual_schedule().is_none());
assert!(x.event_driven_schedule().is_none());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.
§Example
use google_cloud_bigquery_datatransfer_v1::model::ManualSchedule;
let x = ScheduleOptionsV2::new().set_manual_schedule(ManualSchedule::default()/* use setters */);
assert!(x.manual_schedule().is_some());
assert!(x.time_based_schedule().is_none());
assert!(x.event_driven_schedule().is_none());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.
§Example
use google_cloud_bigquery_datatransfer_v1::model::EventDrivenSchedule;
let x = ScheduleOptionsV2::new().set_event_driven_schedule(EventDrivenSchedule::default()/* use setters */);
assert!(x.event_driven_schedule().is_some());
assert!(x.time_based_schedule().is_none());
assert!(x.manual_schedule().is_none());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