pub struct ScheduleBuilder<T>where
T: ScheduleBuilderState,{ /* private fields */ }Implementations§
Source§impl<T> ScheduleBuilder<T>where
T: ScheduleBuilderState,
impl<T> ScheduleBuilder<T>where
T: ScheduleBuilderState,
pub fn name(self, name: ScheduleName) -> ScheduleBuilder<T>
pub fn group_name(self, group_name: ScheduleName) -> ScheduleBuilder<T>
pub fn state(self, state: State) -> ScheduleBuilder<T>
Source§impl ScheduleBuilder<StartState>
impl ScheduleBuilder<StartState>
pub fn new( id: &str, target: Target, flexible_time_window: FlexibleTimeWindow, ) -> ScheduleBuilder<StartState>
pub fn one_time_schedule( self, expression: ScheduleAtExpression, ) -> ScheduleBuilder<OneTimeScheduleState>
pub fn rate_schedule( self, expression: ScheduleRateExpression, ) -> ScheduleBuilder<RepeatedScheduleState>
pub fn cron_schedule( self, expression: ScheduleCronExpression, ) -> ScheduleBuilder<RepeatedScheduleState>
Source§impl ScheduleBuilder<OneTimeScheduleState>
impl ScheduleBuilder<OneTimeScheduleState>
pub fn build(self, stack_builder: &mut StackBuilder) -> ScheduleRef
Source§impl ScheduleBuilder<RepeatedScheduleState>
impl ScheduleBuilder<RepeatedScheduleState>
pub fn start_date( self, start_date: String, ) -> ScheduleBuilder<RepeatedScheduleState>
pub fn end_date( self, end_date: String, ) -> ScheduleBuilder<RepeatedScheduleState>
pub fn build(self, stack_builder: &mut StackBuilder) -> ScheduleRef
Auto Trait Implementations§
impl<T> Freeze for ScheduleBuilder<T>
impl<T> RefUnwindSafe for ScheduleBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for ScheduleBuilder<T>where
T: Send,
impl<T> Sync for ScheduleBuilder<T>where
T: Sync,
impl<T> Unpin for ScheduleBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for ScheduleBuilder<T>where
T: UnwindSafe,
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.