#[non_exhaustive]pub struct FlexibleTimeWindowBuilder { /* private fields */ }Expand description
A builder for FlexibleTimeWindow.
Implementations§
source§impl FlexibleTimeWindowBuilder
impl FlexibleTimeWindowBuilder
sourcepub fn mode(self, input: FlexibleTimeWindowMode) -> Self
pub fn mode(self, input: FlexibleTimeWindowMode) -> Self
Determines whether the schedule is invoked within a flexible time window.
This field is required.sourcepub fn set_mode(self, input: Option<FlexibleTimeWindowMode>) -> Self
pub fn set_mode(self, input: Option<FlexibleTimeWindowMode>) -> Self
Determines whether the schedule is invoked within a flexible time window.
sourcepub fn get_mode(&self) -> &Option<FlexibleTimeWindowMode>
pub fn get_mode(&self) -> &Option<FlexibleTimeWindowMode>
Determines whether the schedule is invoked within a flexible time window.
sourcepub fn maximum_window_in_minutes(self, input: i32) -> Self
pub fn maximum_window_in_minutes(self, input: i32) -> Self
The maximum time window during which a schedule can be invoked.
sourcepub fn set_maximum_window_in_minutes(self, input: Option<i32>) -> Self
pub fn set_maximum_window_in_minutes(self, input: Option<i32>) -> Self
The maximum time window during which a schedule can be invoked.
sourcepub fn get_maximum_window_in_minutes(&self) -> &Option<i32>
pub fn get_maximum_window_in_minutes(&self) -> &Option<i32>
The maximum time window during which a schedule can be invoked.
sourcepub fn build(self) -> Result<FlexibleTimeWindow, BuildError>
pub fn build(self) -> Result<FlexibleTimeWindow, BuildError>
Consumes the builder and constructs a FlexibleTimeWindow.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for FlexibleTimeWindowBuilder
impl Clone for FlexibleTimeWindowBuilder
source§fn clone(&self) -> FlexibleTimeWindowBuilder
fn clone(&self) -> FlexibleTimeWindowBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for FlexibleTimeWindowBuilder
impl Debug for FlexibleTimeWindowBuilder
source§impl Default for FlexibleTimeWindowBuilder
impl Default for FlexibleTimeWindowBuilder
source§fn default() -> FlexibleTimeWindowBuilder
fn default() -> FlexibleTimeWindowBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for FlexibleTimeWindowBuilder
impl PartialEq for FlexibleTimeWindowBuilder
source§fn eq(&self, other: &FlexibleTimeWindowBuilder) -> bool
fn eq(&self, other: &FlexibleTimeWindowBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for FlexibleTimeWindowBuilder
Auto Trait Implementations§
impl RefUnwindSafe for FlexibleTimeWindowBuilder
impl Send for FlexibleTimeWindowBuilder
impl Sync for FlexibleTimeWindowBuilder
impl Unpin for FlexibleTimeWindowBuilder
impl UnwindSafe for FlexibleTimeWindowBuilder
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
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>
Creates a shared type from an unshared type.