pub enum RunValue {
ExecuteValue(Box<ResponseItem>),
ExecuteTransformValue(Value),
}Expand description
The per-item value a fired schedule emits, mirroring the two root dispatch paths at the item level (untagged — the wire shape is just the inner value):
RunValue::ExecuteValue: the typed rootcrate::cli::command::ResponseItemfrom a no-transform command. Boxed because the root union transitively contains this type (agents → tasks → run), and its schema is opaqued toserde_json::Valueso the published schema doesn’t inline the entire root union (the TS7056 blowup the aggregates dodge).RunValue::ExecuteTransformValue: the post-transform JSON from a command that carried a--jq/--pythontransform.
Deliberately does NOT derive JsonSchema and is json_schema_ignored:
its only use site (ValueResponseItem::value) opaques it to
serde_json::Value, so its own schema is never referenced. Deriving
it would publish a degenerate anyOf of two type-less {} variants
(both arms are wire-opaque), which no SDK code generator can name.
Variants§
ExecuteValue(Box<ResponseItem>)
ExecuteTransformValue(Value)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunValue
impl<'de> Deserialize<'de> for RunValue
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 RunValue
impl RefUnwindSafe for RunValue
impl Send for RunValue
impl Sync for RunValue
impl Unpin for RunValue
impl UnsafeUnpin for RunValue
impl UnwindSafe for RunValue
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
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>
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