pub struct MissionCostSummary {
pub total_cost_usd: f64,
pub non_meta_commits: u64,
pub usd_per_commit: Option<f64>,
pub cycle_time_ms: Option<u64>,
pub closed: bool,
pub interventions: u64,
}Expand description
The mission’s cost fold, bundled (cost.json). All fields come from
crate::outcomes::mission_outcomes — the same fold the flight-surgeon
surfaces use, so the bundle can never disagree with them.
Fields§
§total_cost_usd: f64Σ worker cost (recorded costUsd, token-priced fallback).
non_meta_commits: u64Commits on feature.completed whose subject is not an engine/meta
template.
usd_per_commit: Option<f64>total_cost_usd / non_meta_commits — None when there are no non-meta commits (the ratio is meaningless, not zero).
cycle_time_ms: Option<u64>created → terminal minus paused spans; None while the mission is in flight.
closed: boolWhether a terminal event has been recorded.
interventions: u64Operator interventions (the outcomes fold’s definition).
Trait Implementations§
Source§impl Clone for MissionCostSummary
impl Clone for MissionCostSummary
Source§fn clone(&self) -> MissionCostSummary
fn clone(&self) -> MissionCostSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MissionCostSummary
impl Debug for MissionCostSummary
Source§impl<'de> Deserialize<'de> for MissionCostSummary
impl<'de> Deserialize<'de> for MissionCostSummary
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 PartialEq for MissionCostSummary
impl PartialEq for MissionCostSummary
Source§impl Serialize for MissionCostSummary
impl Serialize for MissionCostSummary
impl StructuralPartialEq for MissionCostSummary
Auto Trait Implementations§
impl Freeze for MissionCostSummary
impl RefUnwindSafe for MissionCostSummary
impl Send for MissionCostSummary
impl Sync for MissionCostSummary
impl Unpin for MissionCostSummary
impl UnsafeUnpin for MissionCostSummary
impl UnwindSafe for MissionCostSummary
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