#[non_exhaustive]pub struct LoadConfig {
pub mode: Option<Mode>,
/* private fields */
}Expand description
Simplified load configuration for actions
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.mode: Option<Mode>Load mode
Implementations§
Source§impl LoadConfig
impl LoadConfig
Sourcepub fn set_mode<T: Into<Option<Mode>>>(self, v: T) -> Self
pub fn set_mode<T: Into<Option<Mode>>>(self, v: T) -> Self
Sets the value of mode.
Note that all the setters affecting mode are mutually
exclusive.
§Example
use google_cloud_dataform_v1::model::compilation_result_action::SimpleLoadMode;
let x = LoadConfig::new().set_mode(Some(
google_cloud_dataform_v1::model::compilation_result_action::load_config::Mode::Replace(SimpleLoadMode::default().into())));Sourcepub fn replace(&self) -> Option<&Box<SimpleLoadMode>>
pub fn replace(&self) -> Option<&Box<SimpleLoadMode>>
The value of mode
if it holds a Replace, None if the field is not set or
holds a different branch.
Sourcepub fn set_replace<T: Into<Box<SimpleLoadMode>>>(self, v: T) -> Self
pub fn set_replace<T: Into<Box<SimpleLoadMode>>>(self, v: T) -> Self
Sets the value of mode
to hold a Replace.
Note that all the setters affecting mode are
mutually exclusive.
§Example
use google_cloud_dataform_v1::model::compilation_result_action::SimpleLoadMode;
let x = LoadConfig::new().set_replace(SimpleLoadMode::default()/* use setters */);
assert!(x.replace().is_some());
assert!(x.append().is_none());
assert!(x.maximum().is_none());
assert!(x.unique().is_none());Sourcepub fn append(&self) -> Option<&Box<SimpleLoadMode>>
pub fn append(&self) -> Option<&Box<SimpleLoadMode>>
The value of mode
if it holds a Append, None if the field is not set or
holds a different branch.
Sourcepub fn set_append<T: Into<Box<SimpleLoadMode>>>(self, v: T) -> Self
pub fn set_append<T: Into<Box<SimpleLoadMode>>>(self, v: T) -> Self
Sets the value of mode
to hold a Append.
Note that all the setters affecting mode are
mutually exclusive.
§Example
use google_cloud_dataform_v1::model::compilation_result_action::SimpleLoadMode;
let x = LoadConfig::new().set_append(SimpleLoadMode::default()/* use setters */);
assert!(x.append().is_some());
assert!(x.replace().is_none());
assert!(x.maximum().is_none());
assert!(x.unique().is_none());Sourcepub fn maximum(&self) -> Option<&Box<IncrementalLoadMode>>
pub fn maximum(&self) -> Option<&Box<IncrementalLoadMode>>
The value of mode
if it holds a Maximum, None if the field is not set or
holds a different branch.
Sourcepub fn set_maximum<T: Into<Box<IncrementalLoadMode>>>(self, v: T) -> Self
pub fn set_maximum<T: Into<Box<IncrementalLoadMode>>>(self, v: T) -> Self
Sets the value of mode
to hold a Maximum.
Note that all the setters affecting mode are
mutually exclusive.
§Example
use google_cloud_dataform_v1::model::compilation_result_action::IncrementalLoadMode;
let x = LoadConfig::new().set_maximum(IncrementalLoadMode::default()/* use setters */);
assert!(x.maximum().is_some());
assert!(x.replace().is_none());
assert!(x.append().is_none());
assert!(x.unique().is_none());Sourcepub fn unique(&self) -> Option<&Box<IncrementalLoadMode>>
pub fn unique(&self) -> Option<&Box<IncrementalLoadMode>>
The value of mode
if it holds a Unique, None if the field is not set or
holds a different branch.
Sourcepub fn set_unique<T: Into<Box<IncrementalLoadMode>>>(self, v: T) -> Self
pub fn set_unique<T: Into<Box<IncrementalLoadMode>>>(self, v: T) -> Self
Sets the value of mode
to hold a Unique.
Note that all the setters affecting mode are
mutually exclusive.
§Example
use google_cloud_dataform_v1::model::compilation_result_action::IncrementalLoadMode;
let x = LoadConfig::new().set_unique(IncrementalLoadMode::default()/* use setters */);
assert!(x.unique().is_some());
assert!(x.replace().is_none());
assert!(x.append().is_none());
assert!(x.maximum().is_none());Trait Implementations§
Source§impl Clone for LoadConfig
impl Clone for LoadConfig
Source§fn clone(&self) -> LoadConfig
fn clone(&self) -> LoadConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LoadConfig
impl Debug for LoadConfig
Source§impl Default for LoadConfig
impl Default for LoadConfig
Source§fn default() -> LoadConfig
fn default() -> LoadConfig
Source§impl PartialEq for LoadConfig
impl PartialEq for LoadConfig
impl StructuralPartialEq for LoadConfig
Auto Trait Implementations§
impl Freeze for LoadConfig
impl RefUnwindSafe for LoadConfig
impl Send for LoadConfig
impl Sync for LoadConfig
impl Unpin for LoadConfig
impl UnsafeUnpin for LoadConfig
impl UnwindSafe for LoadConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request