pub struct Run {
pub id: RunId,
pub goal: String,
pub state: RunState,
pub budget: RunBudget,
pub dag: Dag,
pub spent_tokens: u64,
}Expand description
The persistent record of a Run: its goal, state, budget, and DAG. This is
what a crate::orchestrator::RunStore saves and reloads for crash recovery.
Fields§
§id: RunId§goal: String§state: RunState§budget: RunBudget§dag: Dag§spent_tokens: u64Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Run
impl<'de> Deserialize<'de> for Run
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 Forget for Run
impl Freeze for Run
impl RefUnwindSafe for Run
impl Send for Run
impl Sync for Run
impl Unpin for Run
impl UnsafeUnpin for Run
impl UnwindSafe for Run
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