pub struct EstimationConfig {
pub cycle_base_hours: f32,
pub spec_base_hours: f32,
pub custom_base_hours: f32,
pub complexity_multiplier: f32,
pub critical_multiplier: f32,
pub min_hours: f32,
pub max_hours: f32,
}Expand description
Effort estimation configuration.
Can be loaded from a config file under [cpm.effort]:
[cpm.effort]
cycle_base_hours = 4.0
spec_base_hours = 8.0
custom_base_hours = 4.0
complexity_multiplier = 1.5
min_hours = 0.5
max_hours = 40.0Fields§
§cycle_base_hours: f32Base hours for breaking a dependency cycle.
spec_base_hours: f32Base hours for implementing a spec requirement.
custom_base_hours: f32Base hours for a custom task.
complexity_multiplier: f32Multiplier for high-complexity tasks (applied when caller signals
the work is “complex”; see EffortEstimator::estimate).
critical_multiplier: f32Multiplier applied to tasks on the critical path.
min_hours: f32Minimum effort for any task (floor).
max_hours: f32Maximum effort for any task (ceiling).
Trait Implementations§
Source§impl Clone for EstimationConfig
impl Clone for EstimationConfig
Source§fn clone(&self) -> EstimationConfig
fn clone(&self) -> EstimationConfig
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 EstimationConfig
impl Debug for EstimationConfig
Source§impl Default for EstimationConfig
impl Default for EstimationConfig
Source§impl<'de> Deserialize<'de> for EstimationConfig
impl<'de> Deserialize<'de> for EstimationConfig
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 EstimationConfig
impl RefUnwindSafe for EstimationConfig
impl Send for EstimationConfig
impl Sync for EstimationConfig
impl Unpin for EstimationConfig
impl UnsafeUnpin for EstimationConfig
impl UnwindSafe for EstimationConfig
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