pub struct SubmitQuery {
pub ok: Option<bool>,
}Expand description
POST /v1/worker/submit. Bearer = encoded CapToken. Body = raw text/octet.
Simplification-axis endpoint for SubAgents. Removes the JSON construction,
duplicated task_id, and JSON-escape burden of /v1/worker/result — the
worker completes a POST with just token + raw body. Origin: the recent clean-up
of the SubAgent contract drift (fewer IDs to pass around, multi-line escape
accidents eliminated).
Behavior:
task_idis auto-looked-up server-side from the token (already bound to theCapToken).- Body raw bytes go as-is into
Value::Stringforsubmit_output+post_result. ok=truefixed (= the submit endpoint is success-path only). For the error path, use/v1/worker/resultwith an explicitok=false.
Fields§
§ok: Option<bool>Optional. ok=false signals failure (= DispatchOutcome::Blocked, caught
by the flow.ir Try path). Unspecified (None) is treated as ok=true
(= normal success).
Trait Implementations§
Source§impl Debug for SubmitQuery
impl Debug for SubmitQuery
Source§impl Default for SubmitQuery
impl Default for SubmitQuery
Source§fn default() -> SubmitQuery
fn default() -> SubmitQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubmitQuery
impl<'de> Deserialize<'de> for SubmitQuery
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 SubmitQuery
impl RefUnwindSafe for SubmitQuery
impl Send for SubmitQuery
impl Sync for SubmitQuery
impl Unpin for SubmitQuery
impl UnsafeUnpin for SubmitQuery
impl UnwindSafe for SubmitQuery
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
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>
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