1 2 3 4 5 6 7 8 9 10
//! Time-varying multiplier `Pattern`s applied to demands, reservoir heads and pump speeds. use serde::{Deserialize, Serialize}; /// Pattern struct #[derive(Debug, Deserialize, Serialize, Clone)] pub struct Pattern { pub id: Box<str>, pub multipliers: Vec<f64>, }