pub struct CreateCronJobRequest {
pub name: String,
pub workflow_id: String,
pub cron_expression: String,
pub timezone: String,
pub input: Option<WorkflowState>,
pub concurrency_policy: ConcurrencyPolicy,
pub missed_fire_policy: MissedFirePolicy,
}Expand description
POST /cron request body.
Fields§
§name: StringThe job’s name, which is also its id.
workflow_id: StringThe workflow or agent each firing runs.
cron_expression: StringThe cron expression (five, six, or seven fields).
timezone: StringThe IANA time zone the expression is evaluated in. Defaults to UTC.
input: Option<WorkflowState>The input each run receives.
concurrency_policy: ConcurrencyPolicyWhat happens when a previous run is still active. Defaults to skip.
missed_fire_policy: MissedFirePolicyWhich occurrences fire after the scheduler fell behind. Defaults to skip.
Trait Implementations§
Source§impl Debug for CreateCronJobRequest
impl Debug for CreateCronJobRequest
Source§impl<'de> Deserialize<'de> for CreateCronJobRequest
impl<'de> Deserialize<'de> for CreateCronJobRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for CreateCronJobRequest
impl Freeze for CreateCronJobRequest
impl Move for CreateCronJobRequest
impl RefUnwindSafe for CreateCronJobRequest
impl Send for CreateCronJobRequest
impl Sync for CreateCronJobRequest
impl Unpin for CreateCronJobRequest
impl UnsafeUnpin for CreateCronJobRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, Value)>: UnsafeUnpin,
impl UnwindSafe for CreateCronJobRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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 more