#[non_exhaustive]pub struct DiscoverySpec {
pub enabled: bool,
pub include_patterns: Vec<String>,
pub exclude_patterns: Vec<String>,
pub csv_options: Option<CsvOptions>,
pub json_options: Option<JsonOptions>,
pub trigger: Option<Trigger>,
/* private fields */
}Expand description
Settings to manage the metadata discovery and publishing in a zone.
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.enabled: boolRequired. Whether discovery is enabled.
include_patterns: Vec<String>Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.
exclude_patterns: Vec<String>Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these 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.
trigger: Option<Trigger>Determines when discovery is triggered.
Implementations§
Source§impl DiscoverySpec
impl DiscoverySpec
pub fn new() -> Self
Sourcepub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of enabled.
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.
Sourcepub fn set_trigger<T: Into<Option<Trigger>>>(self, v: T) -> Self
pub fn set_trigger<T: Into<Option<Trigger>>>(self, v: T) -> Self
Sets the value of trigger.
Note that all the setters affecting trigger are mutually
exclusive.
Sourcepub fn schedule(&self) -> Option<&String>
pub fn schedule(&self) -> Option<&String>
The value of trigger
if it holds a Schedule, None if the field is not set or
holds a different branch.
Sourcepub fn set_schedule<T: Into<String>>(self, v: T) -> Self
pub fn set_schedule<T: Into<String>>(self, v: T) -> Self
Sets the value of trigger
to hold a Schedule.
Note that all the setters affecting trigger are
mutually exclusive.
Trait Implementations§
Source§impl Clone for DiscoverySpec
impl Clone for DiscoverySpec
Source§fn clone(&self) -> DiscoverySpec
fn clone(&self) -> DiscoverySpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more