pub struct RunUpdate {
pub status: Option<RunStatus>,
pub error: Option<String>,
pub increment_retry: bool,
pub cost_usd: Option<Decimal>,
pub duration_ms: Option<u64>,
pub started_at: Option<DateTime<Utc>>,
pub completed_at: Option<DateTime<Utc>>,
}Expand description
Partial update for a run.
§Examples
use ironflow_store::entities::{RunUpdate, RunStatus};
let update = RunUpdate {
status: Some(RunStatus::Completed),
..RunUpdate::default()
};Fields§
§status: Option<RunStatus>New status.
error: Option<String>Error message.
increment_retry: boolIncrement retry count.
cost_usd: Option<Decimal>Aggregated cost.
duration_ms: Option<u64>Aggregated duration.
started_at: Option<DateTime<Utc>>When execution started.
completed_at: Option<DateTime<Utc>>When execution completed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunUpdate
impl<'de> Deserialize<'de> for RunUpdate
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 RunUpdate
impl RefUnwindSafe for RunUpdate
impl Send for RunUpdate
impl Sync for RunUpdate
impl Unpin for RunUpdate
impl UnsafeUnpin for RunUpdate
impl UnwindSafe for RunUpdate
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