pub struct CronCreateRequest {Show 13 fields
pub name: String,
pub expression: String,
pub prompt: String,
pub target: String,
pub target_uid: String,
pub created_by: String,
pub max_fires: Option<i64>,
pub max_age_secs: Option<i64>,
pub catch_up: Option<String>,
pub tz: Option<String>,
pub policy: Option<Value>,
pub template: Option<Value>,
pub params: Option<Value>,
}Fields§
§name: String§expression: String5-field cron expression: “min hour dom mon dow”, read in tz.
prompt: String§target: StringTarget agent id. Required — no implicit self-targeting from HTTP.
target_uid: StringIdentity M3: the target’s UID, resolved at the MCP boundary (spec
§5.4 — resolution at authoring time) and CARRIED here. Absent → the
job fires by target, counted.
created_by: String§max_fires: Option<i64>§max_age_secs: Option<i64>Hard expiry bound in seconds since creation. Optional — omit for no expiry (matching native CronCreate’s 7-day default is a caller choice, not enforced here; AgentMux’s cross-agent jobs are often meant to run indefinitely, e.g. a recurring standup check).
catch_up: Option<String>What an undelivered fire leaves (jobs spec §5.2): skip (default) or
latest. The same as policy.catch_up; this one wins.
tz: Option<String>The expression’s IANA time zone; UTC when absent.
policy: Option<Value>The definition’s policy (§5.1).
template: Option<Value>A template to create the job from: refused until templates land.
params: Option<Value>Trait Implementations§
Source§impl Debug for CronCreateRequest
impl Debug for CronCreateRequest
Source§impl<'de> Deserialize<'de> for CronCreateRequest
impl<'de> Deserialize<'de> for CronCreateRequest
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>,
Auto Trait Implementations§
impl Freeze for CronCreateRequest
impl RefUnwindSafe for CronCreateRequest
impl Send for CronCreateRequest
impl Sync for CronCreateRequest
impl Unpin for CronCreateRequest
impl UnsafeUnpin for CronCreateRequest
impl UnwindSafe for CronCreateRequest
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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