pub struct Request {
pub path_type: Path,
pub id: String,
pub command: Box<Request>,
pub delay_secs: u64,
pub repeat: bool,
pub repeat_count: Option<u64>,
pub base: RequestBase,
}Fields§
§path_type: Path§id: StringThe task’s user-chosen name — REQUIRED, laboratory-style.
Unique per creating plugin (non-plugin creators share one
namespace); tasks delete --id and re-creation resolve
against it. This is the caller’s handle, distinct from the
daemon’s internal surrogate key.
command: Box<Request>The command to run — the full typed command request.
Schema-opaque (serde_json::Value) ON PURPOSE: embedding the
root request enum’s schema in a leaf transitively expands the
whole command tree, which downstream generated TypeScript
cannot emit declarations for (TS7056) — the same reason the
root aggregate is json_schema_ignore’d. The Rust type is the
validation; the wire shape is unchanged.
delay_secs: u64Seconds until the (first) run; with repeat, also the interval
between runs, measured from each run’s completion.
repeat: boolRe-run every delay_secs instead of running once.
repeat_count: Option<u64>Cap on SUCCESSFUL runs — only valid with repeat.
base: RequestBaseTrait Implementations§
Source§impl CommandRequest for Request
impl CommandRequest for Request
Source§fn request_base(&self) -> &RequestBase
fn request_base(&self) -> &RequestBase
RequestBase envelope (jq /
python / timeout / max_tokens). Every leaf embeds one,
so the implementation is &self.base.Source§fn request_base_mut(&mut self) -> Option<&mut RequestBase>
fn request_base_mut(&mut self) -> Option<&mut RequestBase>
RequestBase
envelope, when it has one (Some(&mut self.base)). Lets a
caller inject the envelope controls (e.g. timeout /
max_tokens) onto an already-parsed request in place, without
re-serializing it through argv — used by the MCP server.Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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>,
Source§impl JsonSchema for Request
impl JsonSchema for Request
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 moreAuto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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