pub struct CatalogJobScheduleInput<'a> {
pub name: &'a str,
pub job_type: &'a str,
pub organization_id: Option<Uuid>,
pub payload_template: &'a Value,
pub cron_expr: &'a str,
pub is_active: bool,
pub next_fire_at: DateTime<Utc>,
pub max_jitter_seconds: i32,
}Expand description
Input for building a JobScheduleUpsert from a catalog-backed job type.
Fields§
§name: &'a strUnique schedule name.
job_type: &'a strCatalog job type enqueued when the schedule fires.
organization_id: Option<Uuid>Optional organization scope copied into jobs for a new schedule.
Existing schedules preserve their stored organization scope on conflict.
payload_template: &'a ValueJSON payload template copied into scheduled jobs.
cron_expr: &'a strCron expression used by the runtime scheduler.
is_active: boolWhether a new schedule should be active.
Existing schedules preserve their stored active state on conflict.
next_fire_at: DateTime<Utc>Next UTC instant at which the schedule is due.
max_jitter_seconds: i32Maximum deterministic jitter, in seconds, applied to future fire times.
Trait Implementations§
Source§impl<'a> Clone for CatalogJobScheduleInput<'a>
impl<'a> Clone for CatalogJobScheduleInput<'a>
Source§fn clone(&self) -> CatalogJobScheduleInput<'a>
fn clone(&self) -> CatalogJobScheduleInput<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for CatalogJobScheduleInput<'a>
impl<'a> RefUnwindSafe for CatalogJobScheduleInput<'a>
impl<'a> Send for CatalogJobScheduleInput<'a>
impl<'a> Sync for CatalogJobScheduleInput<'a>
impl<'a> Unpin for CatalogJobScheduleInput<'a>
impl<'a> UnsafeUnpin for CatalogJobScheduleInput<'a>
impl<'a> UnwindSafe for CatalogJobScheduleInput<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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