Skip to content

Instantly share code, notes, and snippets.

@isaacssemugenyi
Created December 10, 2023 07:12
Show Gist options
  • Save isaacssemugenyi/70ed1a6dc7c8e722dd6439dac0a34be7 to your computer and use it in GitHub Desktop.
Save isaacssemugenyi/70ed1a6dc7c8e722dd6439dac0a34be7 to your computer and use it in GitHub Desktop.
pub struct IndustrialConsumer {
pub peak: f32,
pub shoulder: f32,
pub off_peak: f32,
pub net_cost: f32,
pub cost_with_fee: f32,
pub taxes: f32,
pub total: f32,
}
impl IndustrialConsumer {
pub fn new(
peak: f32,
shoulder: f32,
off_peak: f32,
net_cost: f32,
cost_with_fee: f32,
taxes: f32,
total: f32,
) -> Self {
IndustrialConsumer {
peak,
shoulder,
off_peak,
net_cost,
cost_with_fee,
taxes,
total,
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment