pub struct ScheduleSpec {
pub workflow: String,
pub version: Option<String>,
pub input: Value,
pub cron: Option<String>,
pub interval: Option<String>,
pub timezone: Option<String>,
pub overlap: Overlap,
pub catchup: Catchup,
pub start_at: Option<String>,
pub end_at: Option<String>,
pub jitter: Option<String>,
pub description: Option<String>,
}Expand description
A schedule’s specification: the JSON of POST /v1/schedules (without
schedule_id and paused), stored in orbit_schedules.spec.
Fields§
§workflow: String§version: Option<String>Default: the latest registered version at each fire.
input: Value§cron: Option<String>Five fields: minute hour day-of-month month day-of-week.
interval: Option<String>A fixed interval such as 15m or 1h30m, aligned to start_at
(or to the Unix epoch).
timezone: Option<String>IANA time zone for cron, e.g. Europe/Berlin. Default UTC.
overlap: Overlap§catchup: Catchup§start_at: Option<String>RFC 3339: no occurrence before this time.
end_at: Option<String>RFC 3339: no occurrence after this time; the schedule then ends.
jitter: Option<String>Delay each fire by a pseudo-random amount below this duration, derived from the schedule id and the occurrence (the same on every server).
description: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for ScheduleSpec
impl Clone for ScheduleSpec
Source§impl Debug for ScheduleSpec
impl Debug for ScheduleSpec
Source§impl<'de> Deserialize<'de> for ScheduleSpec
impl<'de> Deserialize<'de> for ScheduleSpec
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
Source§impl PartialEq for ScheduleSpec
impl PartialEq for ScheduleSpec
Source§impl Serialize for ScheduleSpec
impl Serialize for ScheduleSpec
impl StructuralPartialEq for ScheduleSpec
Auto Trait Implementations§
impl Forget for ScheduleSpec
impl Freeze for ScheduleSpec
impl Move for ScheduleSpec
impl RefUnwindSafe for ScheduleSpec
impl Send for ScheduleSpec
impl Sync for ScheduleSpec
impl Unpin for ScheduleSpec
impl UnsafeUnpin for ScheduleSpec
impl UnwindSafe for ScheduleSpec
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request