pub struct ProductionOrderGenerator { /* private fields */ }Expand description
Generates ProductionOrder instances with realistic routing operations,
costing, and lifecycle status distributions.
Implementations§
Source§impl ProductionOrderGenerator
impl ProductionOrderGenerator
Sourcepub fn generate(
&mut self,
company_code: &str,
material_ids: &[(String, String)],
period_start: NaiveDate,
period_end: NaiveDate,
config: &ProductionOrderConfig,
costing: &ManufacturingCostingConfig,
routing: &RoutingConfig,
) -> Vec<ProductionOrder>
pub fn generate( &mut self, company_code: &str, material_ids: &[(String, String)], period_start: NaiveDate, period_end: NaiveDate, config: &ProductionOrderConfig, costing: &ManufacturingCostingConfig, routing: &RoutingConfig, ) -> Vec<ProductionOrder>
Generate production orders for the given period based on configuration.
§Arguments
company_code- Company code for all generated orders.material_ids- Available materials as(material_id, description)tuples.period_start- Start of the generation period.period_end- End of the generation period.config- Production order configuration parameters.costing- Manufacturing costing parameters.routing- Routing configuration parameters.
Auto Trait Implementations§
impl !Freeze for ProductionOrderGenerator
impl RefUnwindSafe for ProductionOrderGenerator
impl Send for ProductionOrderGenerator
impl Sync for ProductionOrderGenerator
impl Unpin for ProductionOrderGenerator
impl UnwindSafe for ProductionOrderGenerator
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