Struct gcp_bigquery_client::model::external_data_configuration::ExternalDataConfiguration
source · [−]pub struct ExternalDataConfiguration {
pub autodetect: Option<bool>,
pub bigtable_options: Option<BigtableOptions>,
pub compression: Option<String>,
pub connection_id: Option<String>,
pub csv_options: Option<CsvOptions>,
pub google_sheets_options: Option<GoogleSheetsOptions>,
pub hive_partitioning_options: Option<HivePartitioningOptions>,
pub ignore_unknown_values: Option<bool>,
pub max_bad_records: Option<i32>,
pub schema: Option<TableSchema>,
pub source_format: String,
pub source_uris: Vec<String>,
}
Fields
autodetect: Option<bool>
Try to detect schema and format options automatically. Any option specified explicitly will be honored.
bigtable_options: Option<BigtableOptions>
compression: Option<String>
[Optional] The compression type of the data source. Possible values include GZIP and NONE. The default value is NONE. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
connection_id: Option<String>
[Optional, Trusted Tester] Connection for external data source.
csv_options: Option<CsvOptions>
google_sheets_options: Option<GoogleSheetsOptions>
hive_partitioning_options: Option<HivePartitioningOptions>
ignore_unknown_values: Option<bool>
[Optional] Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don’t match any column names Google Cloud Bigtable: This setting is ignored. Google Cloud Datastore backups: This setting is ignored. Avro: This setting is ignored.
max_bad_records: Option<i32>
[Optional] The maximum number of bad records that BigQuery can ignore when reading data. If the number of bad records exceeds this value, an invalid error is returned in the job result. This is only valid for CSV, JSON, and Google Sheets. The default value is 0, which requires that all records are valid. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
schema: Option<TableSchema>
source_format: String
[Required] The data format. For CSV files, specify "CSV". For Google sheets, specify "GOOGLE_SHEETS". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Avro files, specify "AVRO". For Google Cloud Datastore backups, specify "DATASTORE_BACKUP". [Beta] For Google Cloud Bigtable, specify "BIGTABLE".
source_uris: Vec<String>
[Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one ‘’ wildcard character and it must come after the ‘bucket’ name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can be specified. Also, the ‘’ wildcard character is not allowed.
Trait Implementations
sourceimpl Clone for ExternalDataConfiguration
impl Clone for ExternalDataConfiguration
sourcefn clone(&self) -> ExternalDataConfiguration
fn clone(&self) -> ExternalDataConfiguration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ExternalDataConfiguration
impl Debug for ExternalDataConfiguration
sourceimpl Default for ExternalDataConfiguration
impl Default for ExternalDataConfiguration
sourcefn default() -> ExternalDataConfiguration
fn default() -> ExternalDataConfiguration
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ExternalDataConfiguration
impl<'de> Deserialize<'de> for ExternalDataConfiguration
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for ExternalDataConfiguration
impl Serialize for ExternalDataConfiguration
Auto Trait Implementations
impl RefUnwindSafe for ExternalDataConfiguration
impl Send for ExternalDataConfiguration
impl Sync for ExternalDataConfiguration
impl Unpin for ExternalDataConfiguration
impl UnwindSafe for ExternalDataConfiguration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more