pub struct StepCtx {Show 18 fields
pub run_id: RunId,
pub step_id: StepId,
pub attempt: i32,
pub max_attempts: i32,
pub spec: StepSpec,
pub untrusted_inputs: Untrusted<Value>,
pub artifacts: Arc<dyn ArtifactStore>,
pub policy: Arc<RuntimePolicyPack>,
pub policy_decision_id: Option<Uuid>,
pub guardrails: PolicyBundle,
pub trust: Option<Trust>,
pub trust_origin: Option<TrustOrigin>,
pub budget: BudgetCtx,
pub trace: TraceContext,
pub checkpoint: Option<Value>,
pub idempotency_key: String,
pub capability_token: Option<CapabilityToken>,
pub slo: Option<StepSlo>,
}Expand description
Execution context passed to every StepExecutor.
Fields§
§run_id: RunId§step_id: StepId§attempt: i32§max_attempts: i32§spec: StepSpec§untrusted_inputs: Untrusted<Value>§artifacts: Arc<dyn ArtifactStore>§policy: Arc<RuntimePolicyPack>§policy_decision_id: Option<Uuid>§guardrails: PolicyBundle§trust: Option<Trust>§trust_origin: Option<TrustOrigin>§budget: BudgetCtx§trace: TraceContext§checkpoint: Option<Value>§idempotency_key: String§capability_token: Option<CapabilityToken>§slo: Option<StepSlo>Auto Trait Implementations§
impl !RefUnwindSafe for StepCtx
impl !UnwindSafe for StepCtx
impl Freeze for StepCtx
impl Send for StepCtx
impl Sync for StepCtx
impl Unpin for StepCtx
impl UnsafeUnpin for StepCtx
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<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request