#[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
pub fn new() -> Self
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.
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.
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.
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.
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.
Trait Implementations§
Source§impl Clone for LoadConfig
impl Clone for LoadConfig
Source§fn clone(&self) -> LoadConfig
fn clone(&self) -> LoadConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more