Struct CronJob
pub struct CronJob {Show 22 fields
pub id: String,
pub expression: String,
pub schedule: Schedule,
pub command: String,
pub prompt: Option<String>,
pub name: Option<String>,
pub job_type: JobType,
pub session_target: SessionTarget,
pub model: Option<String>,
pub agent_alias: String,
pub enabled: bool,
pub delivery: DeliveryConfig,
pub delete_after_run: bool,
pub allowed_tools: Option<Vec<String>>,
pub uses_memory: bool,
pub source: String,
pub shell_output_format: CronShellOutputFormat,
pub created_at: DateTime<Utc>,
pub next_run: DateTime<Utc>,
pub last_run: Option<DateTime<Utc>>,
pub last_status: Option<String>,
pub last_output: Option<String>,
}Fields§
§id: String§expression: String§schedule: Schedule§command: String§prompt: Option<String>§name: Option<String>§job_type: JobType§session_target: SessionTarget§model: Option<String>§agent_alias: StringAgent alias this job runs under. Empty when the row was written before the column existed and no agent has claimed it; the scheduler skips such rows with a warning rather than coercing them to a magic alias.
enabled: bool§delivery: DeliveryConfig§delete_after_run: bool§allowed_tools: Option<Vec<String>>§uses_memory: boolWhether to recall and inject memory context before this agent job runs.
Defaults to true; set to false for stateless digest jobs that should
not accumulate or consume memory entries.
source: StringHow the job was created: "imperative" (CLI/API) or "declarative" (config).
shell_output_format: CronShellOutputFormatOutput format for shell jobs. "wrapped" (default) or "raw".
Declarative jobs read this from CronJobDecl.shell_output_format in
the config; imperative jobs read it from the stored field in the DB.
created_at: DateTime<Utc>§next_run: DateTime<Utc>§last_run: Option<DateTime<Utc>>§last_status: Option<String>§last_output: Option<String>Trait Implementations§
Source§impl Attributable for CronJob
impl Attributable for CronJob
fn role(&self) -> Role
fn alias(&self) -> &str
Source§fn tool_provenance(&self) -> ToolProvenance
fn tool_provenance(&self) -> ToolProvenance
Classifies whether a tool implementation is first-party native code or
an extension. The conservative default prevents a new wrapper from
inheriting native presentation privileges accidentally.
Source§impl<'de> Deserialize<'de> for CronJob
impl<'de> Deserialize<'de> for CronJob
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
Auto Trait Implementations§
impl Freeze for CronJob
impl RefUnwindSafe for CronJob
impl Send for CronJob
impl Sync for CronJob
impl Unpin for CronJob
impl UnsafeUnpin for CronJob
impl UnwindSafe for CronJob
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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