pub struct Command {
pub command_id: String,
pub execution_id: i64,
pub step: String,
pub tool_kind: String,
pub input: Value,
}Expand description
One command the worker will dispatch to a tool.
The shape mirrors the Python-side noetl.command row + envelope as
of v2.103.x — keep the field names aligned so wire-format
compatibility is automatic. R-1.3 will add the remaining fields
(input, render context, parent execution id, etc.) when the worker
reaches feature parity with the Python worker.
Fields§
§command_id: StringStable identifier for this command. CLI generates a UUID;
the worker uses the snowflake id from noetl.command.
execution_id: i64Execution this command belongs to.
R-1.2 PR-2a: aligned to i64 to match the worker’s
CommandNotification.execution_id and the Python
noetl.command.execution_id bigint column.
step: StringStep name from the playbook (e.g. "fetch_calendar").
tool_kind: StringTool kind that dispatch will route to (e.g. "http", "postgres").
input: ValueTool-specific input payload, already rendered against the merged step context.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
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 Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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,
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