Created
December 10, 2023 07:12
-
-
Save isaacssemugenyi/70ed1a6dc7c8e722dd6439dac0a34be7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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