pub struct CronJob {Show 21 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 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>>Optional allowlist of tool names this cron job may use.
When Some(list), only tools whose name is in the list are available.
When None, this job does not add an allowlist. Agent cron jobs may
still receive scheduler-level default exclusions for scheduler mutation
tools unless they opt back in with an explicit allowlist.
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).
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<'de> Deserialize<'de> for CronJob
impl<'de> Deserialize<'de> for CronJob
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CronJob, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CronJob, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for CronJob
impl Serialize for CronJob
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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§
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> 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>
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