pub struct JobView {Show 31 fields
pub id: String,
pub source: String,
pub name: String,
pub owner: String,
pub owner_uid: String,
pub owner_block_id: Option<String>,
pub target: String,
pub expression: String,
pub trigger_kind: String,
pub tz: String,
pub every_secs: Option<i64>,
pub once_at_ms: Option<i64>,
pub next_run_ms: Option<i64>,
pub state: String,
pub catch_up: String,
pub fire_count: i64,
pub max_fires: Option<i64>,
pub missed_count: i64,
pub recent: Vec<JobRunRow>,
pub failing: bool,
pub incident: Option<JobIncident>,
pub cost_today_usd: f64,
pub cost_week_usd: f64,
pub cost_known: bool,
pub actions: bool,
pub over_cap: Option<String>,
pub run_cap_usd: Option<f64>,
pub day_cap_usd: Option<f64>,
pub cost_not_reported: bool,
pub template: Option<TemplatePinView>,
pub cloud: Option<CloudJobView>,
}Expand description
One job in the tab’s list (§3.3).
Fields§
§id: String§source: Stringcron, drone, or cloud (an approved cloud template: it runs elsewhere and reports in).
name: String§owner: StringThe agent that created it, by name; "" for a Drone graph (the operator’s).
owner_uid: String§owner_block_id: Option<String>The owner’s pane on this instance, when it runs here (Open owner).
target: StringThe agent a cron job messages.
expression: StringThe 5-field cron expression, read in tz; "" unless the trigger is
cron (a Drone graph is manual).
trigger_kind: StringThe trigger’s kind: cron, every, once or manual.
tz: StringThe cron expression’s IANA time zone.
every_secs: Option<i64>every: the interval, in seconds.
once_at_ms: Option<i64>once: the time (ms epoch).
next_run_ms: Option<i64>The next scheduled fire (ms epoch), for an enabled cron job.
state: Stringactive, paused, paused_all (Pause all) or ended (its own limit).
catch_up: Stringskip or latest (§5.2); "" for a Drone graph.
fire_count: i64§max_fires: Option<i64>§missed_count: i64§recent: Vec<JobRunRow>Its newest runs, newest first, at most 14.
failing: boolIts newest decisive run failed (§3.4).
incident: Option<JobIncident>Its open incident (§3.4): the Kanban task its failures went to.
cost_today_usd: f64Spend since local midnight, and over the last 7 days.
cost_week_usd: f64§cost_known: boolAny of those runs reported a cost; when none did the tab shows “—”.
actions: boolIt takes Run now, Pause, Resume and Delete here: a cron job does; a Drone graph, run from its own pane, doesn’t.
over_cap: Option<String>The cap it is over today (job_cap, account_cap or message_cap):
the tab’s “Over cap (today)”. Its runs resume at the next local midnight.
run_cap_usd: Option<f64>The most one run may spend, and one day of its runs (§5.3), in dollars.
day_cap_usd: Option<f64>§cost_not_reported: boolIts agent’s provider reports no cost, so the caps can’t stop it and only its timeout limits it: the tab says so.
template: Option<TemplatePinView>The template it was made from, and a newer version of it if one is installed (§5.4).
cloud: Option<CloudJobView>What a cloud job adds: its reporter, grace, longest run and “Run now”. None for the others.
Trait Implementations§
Source§impl TS for JobView
impl TS for JobView
Source§type WithoutGenerics = JobView
type WithoutGenerics = JobView
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or (). The only requirement for these dummy types is that
EXPORT_TO must be None. Read moreSource§type OptionInnerType = JobView
type OptionInnerType = JobView
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§fn decl_concrete(cfg: &Config) -> String
fn decl_concrete(cfg: &Config) -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl(cfg: &Config) -> String
fn decl(cfg: &Config) -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline(cfg: &Config) -> String
fn inline(cfg: &Config) -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened(cfg: &Config) -> String
fn inline_flattened(cfg: &Config) -> String
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported, relative to the output directory.
The returned path does not include any base directory. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
§fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
§fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export_all]. Read more§fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export]. Read moreAuto Trait Implementations§
impl Freeze for JobView
impl RefUnwindSafe for JobView
impl Send for JobView
impl Sync for JobView
impl Unpin for JobView
impl UnsafeUnpin for JobView
impl UnwindSafe for JobView
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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