pub struct Step {Show 30 fields
pub run_id: Uuid,
pub step_id: Uuid,
pub idx: i32,
pub priority: i16,
pub spec_json: Value,
pub status: StepStatus,
pub attempt: i32,
pub created_at: DateTime<Utc>,
pub max_attempts: i32,
pub retry_backoff_ms: i64,
pub retry_backoff_factor: f64,
pub not_before: Option<DateTime<Utc>>,
pub deadline_at: Option<DateTime<Utc>>,
pub pending_dependencies: i32,
pub total_dependencies: i32,
pub estimated_tokens: i64,
pub estimated_cost: f64,
pub actual_tokens: Option<i64>,
pub actual_cost: Option<f64>,
pub leased_by: Option<String>,
pub lease_expires_at: Option<DateTime<Utc>>,
pub output_json: Option<Value>,
pub error_json: Option<Value>,
pub input_snapshot: Option<Value>,
pub output_snapshot: Option<Value>,
pub provider: Option<String>,
pub provider_version: Option<String>,
pub checkpoint: Option<Value>,
pub compensation_step: Option<Uuid>,
pub compensation_scheduled: bool,
}Expand description
Step contract spanning deterministic replay and attempt metadata.
Fields§
§run_id: Uuid§step_id: Uuid§idx: i32§priority: i16§spec_json: Value§status: StepStatus§attempt: i32§created_at: DateTime<Utc>§max_attempts: i32§retry_backoff_ms: i64§retry_backoff_factor: f64§not_before: Option<DateTime<Utc>>§deadline_at: Option<DateTime<Utc>>§pending_dependencies: i32§total_dependencies: i32§estimated_tokens: i64§estimated_cost: f64§actual_tokens: Option<i64>§actual_cost: Option<f64>§leased_by: Option<String>§lease_expires_at: Option<DateTime<Utc>>§output_json: Option<Value>§error_json: Option<Value>§input_snapshot: Option<Value>§output_snapshot: Option<Value>§provider: Option<String>§provider_version: Option<String>§checkpoint: Option<Value>§compensation_step: Option<Uuid>§compensation_scheduled: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for Step
impl<'de> Deserialize<'de> for Step
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 Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnwindSafe for Step
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> 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::Request