pub struct NewStep {Show 24 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 input_snapshot: Option<Value>,
pub provider: Option<String>,
pub provider_version: Option<String>,
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 checkpoint: Option<Value>,
pub compensation_step: Option<Uuid>,
pub compensation_scheduled: bool,
}Expand description
Insertable representation for a step.
Fields§
§run_id: Uuid§step_id: Uuid§idx: i32§priority: i16§spec_json: Value§status: StepStatus§attempt: i32§input_snapshot: Option<Value>§provider: Option<String>§provider_version: Option<String>§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>§checkpoint: Option<Value>§compensation_step: Option<Uuid>§compensation_scheduled: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for NewStep
impl<'de> Deserialize<'de> for NewStep
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 NewStep
impl RefUnwindSafe for NewStep
impl Send for NewStep
impl Sync for NewStep
impl Unpin for NewStep
impl UnwindSafe for NewStep
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