#[non_exhaustive]pub struct StorageConfig {
pub include_patterns: Vec<String>,
pub exclude_patterns: Vec<String>,
pub csv_options: Option<CsvOptions>,
pub json_options: Option<JsonOptions>,
/* private fields */
}Expand description
Configurations related to Cloud Storage as the data source.
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.include_patterns: Vec<String>Optional. Defines the data to include during discovery when only a subset of the data should be considered. Provide a list of patterns that identify the data to include. For Cloud Storage bucket assets, these patterns are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these patterns are interpreted as patterns to match table names.
exclude_patterns: Vec<String>Optional. Defines the data to exclude during discovery. Provide a list of patterns that identify the data to exclude. For Cloud Storage bucket assets, these patterns are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these patterns are interpreted as patterns to match table names.
csv_options: Option<CsvOptions>Optional. Configuration for CSV data.
json_options: Option<JsonOptions>Optional. Configuration for JSON data.
Implementations§
Source§impl StorageConfig
impl StorageConfig
pub fn new() -> Self
Sourcepub fn set_include_patterns<T, V>(self, v: T) -> Self
pub fn set_include_patterns<T, V>(self, v: T) -> Self
Sets the value of include_patterns.
Sourcepub fn set_exclude_patterns<T, V>(self, v: T) -> Self
pub fn set_exclude_patterns<T, V>(self, v: T) -> Self
Sets the value of exclude_patterns.
Sourcepub fn set_csv_options<T>(self, v: T) -> Selfwhere
T: Into<CsvOptions>,
pub fn set_csv_options<T>(self, v: T) -> Selfwhere
T: Into<CsvOptions>,
Sets the value of csv_options.
Sourcepub fn set_or_clear_csv_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<CsvOptions>,
pub fn set_or_clear_csv_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<CsvOptions>,
Sets or clears the value of csv_options.
Sourcepub fn set_json_options<T>(self, v: T) -> Selfwhere
T: Into<JsonOptions>,
pub fn set_json_options<T>(self, v: T) -> Selfwhere
T: Into<JsonOptions>,
Sets the value of json_options.
Sourcepub fn set_or_clear_json_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<JsonOptions>,
pub fn set_or_clear_json_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<JsonOptions>,
Sets or clears the value of json_options.
Trait Implementations§
Source§impl Clone for StorageConfig
impl Clone for StorageConfig
Source§fn clone(&self) -> StorageConfig
fn clone(&self) -> StorageConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more