pub struct RunResponse {Show 19 fields
pub id: Uuid,
pub workflow_name: String,
pub status: RunStatus,
pub trigger: TriggerKind,
pub error: Option<String>,
pub retry_count: u32,
pub max_retries: u32,
pub cost_usd: Decimal,
pub duration_ms: u64,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub started_at: Option<DateTime<Utc>>,
pub completed_at: Option<DateTime<Utc>>,
pub handler_version: Option<String>,
pub labels: HashMap<String, String>,
pub scheduled_at: Option<DateTime<Utc>>,
pub created_by: CreatedBy,
pub idempotency_key: Option<String>,
pub max_cost_usd: Option<Decimal>,
}Expand description
Fields§
§id: UuidUnique run identifier.
workflow_name: StringWorkflow name.
status: RunStatusCurrent status.
trigger: TriggerKindHow the run was triggered.
error: Option<String>Optional error message.
retry_count: u32Number of times retried.
max_retries: u32Maximum allowed retries.
cost_usd: DecimalAggregated cost in USD.
duration_ms: u64Total duration in milliseconds.
created_at: DateTime<Utc>When created.
updated_at: DateTime<Utc>When last updated.
started_at: Option<DateTime<Utc>>When execution started.
completed_at: Option<DateTime<Utc>>When execution completed.
handler_version: Option<String>Version of the handler that created this run.
labels: HashMap<String, String>User-defined key-value labels.
scheduled_at: Option<DateTime<Utc>>Scheduled execution time. None means the run executed immediately.
created_by: CreatedByWho triggered the run. Always present.
idempotency_key: Option<String>Idempotency key that produced this run, when one was supplied.
max_cost_usd: Option<Decimal>Cumulative cost cap for this run, in USD. None means no cap.
Trait Implementations§
Source§impl Debug for RunResponse
impl Debug for RunResponse
Source§impl<'de> Deserialize<'de> for RunResponse
impl<'de> Deserialize<'de> for RunResponse
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
Source§impl From<Run> for RunResponse
impl From<Run> for RunResponse
Auto Trait Implementations§
impl Freeze for RunResponse
impl RefUnwindSafe for RunResponse
impl Send for RunResponse
impl Sync for RunResponse
impl Unpin for RunResponse
impl UnsafeUnpin for RunResponse
impl UnwindSafe for RunResponse
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