pub struct Job {Show 18 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 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>Hermes: mirror the fire’s output into the target conversation’s transcript.
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>,
Deserialize this value from the given Serde deserializer. Read more
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>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$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
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<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
Compare self to
key and return true if they are equal.