pub struct CostPerChange {
pub total_cost_usd: f64,
pub non_meta_commits: u64,
pub usd_per_commit: Option<f64>,
}Fields§
§total_cost_usd: f64§non_meta_commits: u64Commits recorded on feature.completed whose subject is not an engine/meta template (contract_sweep::is_meta_commit, subject-level — the fold reads events only, never git).
usd_per_commit: Option<f64>total_cost_usd / non_meta_commits (None when no non-meta commits — the ratio is meaningless, not zero).
Trait Implementations§
Source§impl Clone for CostPerChange
impl Clone for CostPerChange
Source§fn clone(&self) -> CostPerChange
fn clone(&self) -> CostPerChange
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 CostPerChange
impl Debug for CostPerChange
Source§impl<'de> Deserialize<'de> for CostPerChange
impl<'de> Deserialize<'de> for CostPerChange
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 CostPerChange
impl PartialEq for CostPerChange
Source§impl Serialize for CostPerChange
impl Serialize for CostPerChange
impl StructuralPartialEq for CostPerChange
Auto Trait Implementations§
impl Freeze for CostPerChange
impl RefUnwindSafe for CostPerChange
impl Send for CostPerChange
impl Sync for CostPerChange
impl Unpin for CostPerChange
impl UnsafeUnpin for CostPerChange
impl UnwindSafe for CostPerChange
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