#[non_exhaustive]pub struct BigQueryDestinationConfig {
pub data_freshness: Option<Duration>,
pub blmt_config: Option<BlmtConfig>,
pub dataset_config: Option<DatasetConfig>,
pub write_mode: Option<WriteMode>,
/* private fields */
}
Expand description
BigQuery destination configuration
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.data_freshness: Option<Duration>
The guaranteed data freshness (in seconds) when querying tables created by the stream. Editing this field will only affect new tables created in the future, but existing tables will not be impacted. Lower values mean that queries will return fresher data, but may result in higher cost.
blmt_config: Option<BlmtConfig>
Optional. Big Lake Managed Tables (BLMT) configuration.
dataset_config: Option<DatasetConfig>
Target dataset(s) configuration.
write_mode: Option<WriteMode>
Implementations§
Source§impl BigQueryDestinationConfig
impl BigQueryDestinationConfig
pub fn new() -> Self
Sourcepub fn set_data_freshness<T>(self, v: T) -> Self
pub fn set_data_freshness<T>(self, v: T) -> Self
Sets the value of data_freshness.
Sourcepub fn set_or_clear_data_freshness<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_data_freshness<T>(self, v: Option<T>) -> Self
Sets or clears the value of data_freshness.
Sourcepub fn set_blmt_config<T>(self, v: T) -> Selfwhere
T: Into<BlmtConfig>,
pub fn set_blmt_config<T>(self, v: T) -> Selfwhere
T: Into<BlmtConfig>,
Sets the value of blmt_config.
Sourcepub fn set_or_clear_blmt_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<BlmtConfig>,
pub fn set_or_clear_blmt_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<BlmtConfig>,
Sets or clears the value of blmt_config.
Sourcepub fn set_dataset_config<T: Into<Option<DatasetConfig>>>(self, v: T) -> Self
pub fn set_dataset_config<T: Into<Option<DatasetConfig>>>(self, v: T) -> Self
Sets the value of dataset_config.
Note that all the setters affecting dataset_config
are mutually
exclusive.
Sourcepub fn single_target_dataset(&self) -> Option<&Box<SingleTargetDataset>>
pub fn single_target_dataset(&self) -> Option<&Box<SingleTargetDataset>>
The value of dataset_config
if it holds a SingleTargetDataset
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_single_target_dataset<T: Into<Box<SingleTargetDataset>>>(
self,
v: T,
) -> Self
pub fn set_single_target_dataset<T: Into<Box<SingleTargetDataset>>>( self, v: T, ) -> Self
Sets the value of dataset_config
to hold a SingleTargetDataset
.
Note that all the setters affecting dataset_config
are
mutually exclusive.
Sourcepub fn source_hierarchy_datasets(&self) -> Option<&Box<SourceHierarchyDatasets>>
pub fn source_hierarchy_datasets(&self) -> Option<&Box<SourceHierarchyDatasets>>
The value of dataset_config
if it holds a SourceHierarchyDatasets
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_source_hierarchy_datasets<T: Into<Box<SourceHierarchyDatasets>>>(
self,
v: T,
) -> Self
pub fn set_source_hierarchy_datasets<T: Into<Box<SourceHierarchyDatasets>>>( self, v: T, ) -> Self
Sets the value of dataset_config
to hold a SourceHierarchyDatasets
.
Note that all the setters affecting dataset_config
are
mutually exclusive.
Sourcepub fn set_write_mode<T: Into<Option<WriteMode>>>(self, v: T) -> Self
pub fn set_write_mode<T: Into<Option<WriteMode>>>(self, v: T) -> Self
Sets the value of write_mode.
Note that all the setters affecting write_mode
are mutually
exclusive.
Sourcepub fn merge(&self) -> Option<&Box<Merge>>
pub fn merge(&self) -> Option<&Box<Merge>>
The value of write_mode
if it holds a Merge
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_merge<T: Into<Box<Merge>>>(self, v: T) -> Self
pub fn set_merge<T: Into<Box<Merge>>>(self, v: T) -> Self
Sets the value of write_mode
to hold a Merge
.
Note that all the setters affecting write_mode
are
mutually exclusive.
Sourcepub fn append_only(&self) -> Option<&Box<AppendOnly>>
pub fn append_only(&self) -> Option<&Box<AppendOnly>>
The value of write_mode
if it holds a AppendOnly
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_append_only<T: Into<Box<AppendOnly>>>(self, v: T) -> Self
pub fn set_append_only<T: Into<Box<AppendOnly>>>(self, v: T) -> Self
Sets the value of write_mode
to hold a AppendOnly
.
Note that all the setters affecting write_mode
are
mutually exclusive.
Trait Implementations§
Source§impl Clone for BigQueryDestinationConfig
impl Clone for BigQueryDestinationConfig
Source§fn clone(&self) -> BigQueryDestinationConfig
fn clone(&self) -> BigQueryDestinationConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more