#[non_exhaustive]pub struct ExecutionSpec {
pub trigger: Option<Trigger>,
pub incremental: Option<Incremental>,
/* private fields */
}Expand description
DataScan execution settings.
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.trigger: Option<Trigger>Optional. Spec related to how often and when a scan should be triggered.
If not specified, the default is OnDemand, which means the scan will
not run until the user calls RunDataScan API.
incremental: Option<Incremental>Spec related to incremental scan of the data
When an option is selected for incremental scan, it cannot be unset or changed. If not specified, a data scan will run for all data in the table.
Implementations§
Source§impl ExecutionSpec
impl ExecutionSpec
pub fn new() -> Self
Sourcepub fn set_trigger<T>(self, v: T) -> Self
pub fn set_trigger<T>(self, v: T) -> Self
Sets the value of trigger.
Sourcepub fn set_or_clear_trigger<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_trigger<T>(self, v: Option<T>) -> Self
Sets or clears the value of trigger.
Sourcepub fn set_incremental<T: Into<Option<Incremental>>>(self, v: T) -> Self
pub fn set_incremental<T: Into<Option<Incremental>>>(self, v: T) -> Self
Sets the value of incremental.
Note that all the setters affecting incremental are mutually
exclusive.
Sourcepub fn field(&self) -> Option<&String>
pub fn field(&self) -> Option<&String>
The value of incremental
if it holds a Field, None if the field is not set or
holds a different branch.
Sourcepub fn set_field<T: Into<String>>(self, v: T) -> Self
pub fn set_field<T: Into<String>>(self, v: T) -> Self
Sets the value of incremental
to hold a Field.
Note that all the setters affecting incremental are
mutually exclusive.
Trait Implementations§
Source§impl Clone for ExecutionSpec
impl Clone for ExecutionSpec
Source§fn clone(&self) -> ExecutionSpec
fn clone(&self) -> ExecutionSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more