pub struct CostBreakdown {
pub material_cost: Decimal,
pub labor_cost: Decimal,
pub overhead_cost: Decimal,
pub standard_material_cost: Decimal,
pub standard_labor_cost: Decimal,
pub standard_overhead_cost: Decimal,
pub standard_unit_cost: Decimal,
}Expand description
Breakdown of production order costs into constituent components.
Enables variance analysis: actual vs standard for each component.
Fields§
§material_cost: DecimalMaterial cost (raw materials consumed)
labor_cost: DecimalDirect labor cost (hours × rate)
overhead_cost: DecimalApplied overhead (labor cost × overhead rate)
standard_material_cost: DecimalStandard material cost for variance calculation
standard_labor_cost: DecimalStandard labor cost for variance calculation
standard_overhead_cost: DecimalStandard overhead cost for variance calculation
standard_unit_cost: DecimalStandard cost per unit of output
Implementations§
Source§impl CostBreakdown
impl CostBreakdown
Sourcepub fn total_actual(&self) -> Decimal
pub fn total_actual(&self) -> Decimal
Total actual cost (sum of material + labor + overhead).
Sourcepub fn total_standard(&self) -> Decimal
pub fn total_standard(&self) -> Decimal
Total standard cost.
Sourcepub fn total_variance(&self) -> Decimal
pub fn total_variance(&self) -> Decimal
Total variance (actual - standard).
Trait Implementations§
Source§impl Clone for CostBreakdown
impl Clone for CostBreakdown
Source§fn clone(&self) -> CostBreakdown
fn clone(&self) -> CostBreakdown
Returns a duplicate of the value. Read more
1.0.0 · 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 CostBreakdown
impl Debug for CostBreakdown
Source§impl Default for CostBreakdown
impl Default for CostBreakdown
Source§fn default() -> CostBreakdown
fn default() -> CostBreakdown
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CostBreakdown
impl<'de> Deserialize<'de> for CostBreakdown
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 CostBreakdown
impl RefUnwindSafe for CostBreakdown
impl Send for CostBreakdown
impl Sync for CostBreakdown
impl Unpin for CostBreakdown
impl UnsafeUnpin for CostBreakdown
impl UnwindSafe for CostBreakdown
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