pub struct Job {Show 20 fields
pub id: String,
pub schedule: Schedule,
pub prompt: Option<String>,
pub workdir: Option<String>,
pub model: Option<String>,
pub skills: Vec<String>,
pub context_from: Option<Vec<String>>,
pub deliver: Target,
pub failure_deliver: Option<Target>,
pub origin: Option<JobOrigin>,
pub attach_to_session: Option<bool>,
pub session_target: Option<String>,
pub machine: Option<String>,
pub repeat: Option<Repeat>,
pub enabled: bool,
pub next_run_at: Option<String>,
pub last_run_at: Option<String>,
pub last_status: Option<String>,
pub created_at: Option<String>,
pub residue: Residue,
}Expand description
One scheduled job.
Fields§
§id: StringThe id (a file-name-safe token).
schedule: ScheduleWhen it fires.
prompt: Option<String>The prompt.
workdir: Option<String>Working directory: relative to the profile dir, or absolute.
model: Option<String>Model override.
skills: Vec<String>Skills to load.
context_from: Option<Vec<String>>Job ids (or self) whose newest output is prepended at fire time.
deliver: TargetWhere the result goes.
failure_deliver: Option<Target>Where a failure goes; deliver with a prefix when absent.
origin: Option<JobOrigin>The creating conversation.
attach_to_session: Option<bool>The fire is a turn in the live session of the conversation it delivers to (steering a running turn where the worker allows), instead of a session of its own; Hermes mirrors it into that transcript.
session_target: Option<String>Which session a fire runs in: main (its agent’s main session), current (the binding’s session),
isolated (a new one) or session:<id> (that one). Absent: the source’s own default.
machine: Option<String>The machine whose session runs each fire (supercode’s: Hermes runs every fire on its own host). Absent, a fire runs where the orchestrator does.
repeat: Option<Repeat>Remaining-runs counter for once jobs.
enabled: boolWhether it fires at all.
next_run_at: Option<String>Next fire, RFC3339.
last_run_at: Option<String>Last fire, RFC3339.
last_status: Option<String>Last fire’s status word.
created_at: Option<String>Creation, RFC3339.
residue: ResidueSource fields the record does not model, verbatim.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
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>,
impl Eq for Job
Source§impl JsonSchema for Job
impl JsonSchema for Job
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Job
Auto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.