#[non_exhaustive]pub struct StartManualTransferRunsRequest {
pub parent: String,
pub time: Option<Time>,
/* private fields */
}Expand description
A request to start manual transfer runs.
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.parent: StringRequired. Transfer configuration name in the form:
projects/{project_id}/transferConfigs/{config_id} or
projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}.
time: Option<Time>The requested time specification - this can be a time range or a specific run_time.
Implementations§
Source§impl StartManualTransferRunsRequest
impl StartManualTransferRunsRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_time<T: Into<Option<Time>>>(self, v: T) -> Self
pub fn set_time<T: Into<Option<Time>>>(self, v: T) -> Self
Sets the value of time.
Note that all the setters affecting time are mutually
exclusive.
§Example
use google_cloud_bigquery_datatransfer_v1::model::start_manual_transfer_runs_request::TimeRange;
let x = StartManualTransferRunsRequest::new().set_time(Some(
google_cloud_bigquery_datatransfer_v1::model::start_manual_transfer_runs_request::Time::RequestedTimeRange(TimeRange::default().into())));Sourcepub fn requested_time_range(&self) -> Option<&Box<TimeRange>>
pub fn requested_time_range(&self) -> Option<&Box<TimeRange>>
The value of time
if it holds a RequestedTimeRange, None if the field is not set or
holds a different branch.
Sourcepub fn set_requested_time_range<T: Into<Box<TimeRange>>>(self, v: T) -> Self
pub fn set_requested_time_range<T: Into<Box<TimeRange>>>(self, v: T) -> Self
Sets the value of time
to hold a RequestedTimeRange.
Note that all the setters affecting time are
mutually exclusive.
§Example
use google_cloud_bigquery_datatransfer_v1::model::start_manual_transfer_runs_request::TimeRange;
let x = StartManualTransferRunsRequest::new().set_requested_time_range(TimeRange::default()/* use setters */);
assert!(x.requested_time_range().is_some());
assert!(x.requested_run_time().is_none());Sourcepub fn requested_run_time(&self) -> Option<&Box<Timestamp>>
pub fn requested_run_time(&self) -> Option<&Box<Timestamp>>
The value of time
if it holds a RequestedRunTime, None if the field is not set or
holds a different branch.
Sourcepub fn set_requested_run_time<T: Into<Box<Timestamp>>>(self, v: T) -> Self
pub fn set_requested_run_time<T: Into<Box<Timestamp>>>(self, v: T) -> Self
Sets the value of time
to hold a RequestedRunTime.
Note that all the setters affecting time are
mutually exclusive.
§Example
use wkt::Timestamp;
let x = StartManualTransferRunsRequest::new().set_requested_run_time(Timestamp::default()/* use setters */);
assert!(x.requested_run_time().is_some());
assert!(x.requested_time_range().is_none());Trait Implementations§
Source§impl Clone for StartManualTransferRunsRequest
impl Clone for StartManualTransferRunsRequest
Source§fn clone(&self) -> StartManualTransferRunsRequest
fn clone(&self) -> StartManualTransferRunsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for StartManualTransferRunsRequest
impl Default for StartManualTransferRunsRequest
Source§fn default() -> StartManualTransferRunsRequest
fn default() -> StartManualTransferRunsRequest
Source§impl PartialEq for StartManualTransferRunsRequest
impl PartialEq for StartManualTransferRunsRequest
Source§fn eq(&self, other: &StartManualTransferRunsRequest) -> bool
fn eq(&self, other: &StartManualTransferRunsRequest) -> bool
self and other values to be equal, and is used by ==.