pub struct BridgeContext<'a> {
pub execution_id: i64,
pub step: &'a str,
pub variables: &'a HashMap<String, String>,
pub server_url: String,
pub worker_id: Option<String>,
pub command_id: Option<String>,
}Expand description
Per-call context for the bridge. Groups together what would otherwise be many parameters threaded through every dispatch site.
The CLI’s ExecutionContext (repos/cli/src/playbook_runner.rs)
has a different shape than ToolsExecutionContext — the CLI
uses HashMap<String, String> for variables and tracks step
results separately; noetl-tools uses HashMap<String, serde_json::Value> and bundles many more execution-level fields
(server_url, worker_id, command_id, etc.).
BridgeContext is the narrow view the CLI hands to the bridge;
to_tools_context expands it into the full
ToolsExecutionContext shape.
Fields§
§execution_id: i64Execution id — required by ToolsExecutionContext. CLI
local mode synthesises this from the start time / playbook
path; the worker uses the snowflake id from noetl.command.
step: &'a strStep name the bridged tool is running under.
variables: &'a HashMap<String, String>CLI variables map (workload., vars.,
server_url: StringControl-plane server URL. Empty string when running in CLI local mode without a server backend.
worker_id: Option<String>Worker id / command id — None in CLI local mode.
command_id: Option<String>Auto Trait Implementations§
impl<'a> Freeze for BridgeContext<'a>
impl<'a> RefUnwindSafe for BridgeContext<'a>
impl<'a> Send for BridgeContext<'a>
impl<'a> Sync for BridgeContext<'a>
impl<'a> Unpin for BridgeContext<'a>
impl<'a> UnsafeUnpin for BridgeContext<'a>
impl<'a> UnwindSafe for BridgeContext<'a>
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> 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