#[non_exhaustive]pub struct Trigger {
pub mode: Option<Mode>,
/* private fields */
}Expand description
DataScan scheduling and trigger settings.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mode: Option<Mode>DataScan scheduling and trigger settings.
If not specified, the default is onDemand.
Implementations§
Source§impl Trigger
impl Trigger
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 on_demand(&self) -> Option<&Box<OnDemand>>
pub fn on_demand(&self) -> Option<&Box<OnDemand>>
The value of mode
if it holds a OnDemand, None if the field is not set or
holds a different branch.
Sourcepub fn set_on_demand<T: Into<Box<OnDemand>>>(self, v: T) -> Self
pub fn set_on_demand<T: Into<Box<OnDemand>>>(self, v: T) -> Self
Sets the value of mode
to hold a OnDemand.
Note that all the setters affecting mode are
mutually exclusive.
Trait Implementations§
impl StructuralPartialEq for Trigger
Auto Trait Implementations§
impl Freeze for Trigger
impl RefUnwindSafe for Trigger
impl Send for Trigger
impl Sync for Trigger
impl Unpin for Trigger
impl UnwindSafe for Trigger
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
Mutably borrows from an owned value. Read more