pub struct PopulationConfig {
pub retail_customers: u32,
pub retail_persona_weights: HashMap<String, f64>,
pub business_customers: u32,
pub business_persona_weights: HashMap<String, f64>,
pub trusts: u32,
pub household_rate: f64,
pub avg_household_size: f64,
pub period_months: u32,
pub start_date: String,
}Expand description
Population configuration.
Fields§
§retail_customers: u32Number of retail customers
retail_persona_weights: HashMap<String, f64>Retail persona weight distribution
business_customers: u32Number of business customers
business_persona_weights: HashMap<String, f64>Business persona weight distribution
trusts: u32Number of trust customers
household_rate: f64Household formation rate (proportion of retail in households)
avg_household_size: f64Average household size
period_months: u32Simulation period in months
start_date: StringSimulation start date (YYYY-MM-DD)
Trait Implementations§
Source§impl Clone for PopulationConfig
impl Clone for PopulationConfig
Source§fn clone(&self) -> PopulationConfig
fn clone(&self) -> PopulationConfig
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 PopulationConfig
impl Debug for PopulationConfig
Source§impl Default for PopulationConfig
impl Default for PopulationConfig
Source§impl<'de> Deserialize<'de> for PopulationConfig
impl<'de> Deserialize<'de> for PopulationConfig
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 PopulationConfig
impl RefUnwindSafe for PopulationConfig
impl Send for PopulationConfig
impl Sync for PopulationConfig
impl Unpin for PopulationConfig
impl UnwindSafe for PopulationConfig
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