pub struct InventoryValuationGeneratorConfig {
pub avg_nrv_factor: f64,
pub nrv_factor_variation: f64,
pub seed_offset: u64,
}Expand description
Configuration for the inventory valuation generator.
Fields§
§avg_nrv_factor: f64Average ratio of NRV to cost (1.0 = no impairment on average). Values below 1.0 introduce write-downs.
nrv_factor_variation: f64Symmetric variation applied to avg_nrv_factor per material.
seed_offset: u64Seed offset used to keep the RNG independent of other generators.
Trait Implementations§
Source§impl Clone for InventoryValuationGeneratorConfig
impl Clone for InventoryValuationGeneratorConfig
Source§fn clone(&self) -> InventoryValuationGeneratorConfig
fn clone(&self) -> InventoryValuationGeneratorConfig
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 moreAuto Trait Implementations§
impl Freeze for InventoryValuationGeneratorConfig
impl RefUnwindSafe for InventoryValuationGeneratorConfig
impl Send for InventoryValuationGeneratorConfig
impl Sync for InventoryValuationGeneratorConfig
impl Unpin for InventoryValuationGeneratorConfig
impl UnsafeUnpin for InventoryValuationGeneratorConfig
impl UnwindSafe for InventoryValuationGeneratorConfig
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