pub struct RateTier {
pub name: String,
pub rate: f64,
pub hour_ranges: Vec<HourRange>,
}Expand description
Represents a single tier in a tiered rate structure
Fields§
§name: StringName of the tier (e.g., “Peak”, “Off-Peak”, “Super Off-Peak”)
rate: f64Rate per unit of electricity for this tier
hour_ranges: Vec<HourRange>List of hour ranges when this tier applies
Implementations§
Trait Implementations§
impl StructuralPartialEq for RateTier
Auto Trait Implementations§
impl Freeze for RateTier
impl RefUnwindSafe for RateTier
impl Send for RateTier
impl Sync for RateTier
impl Unpin for RateTier
impl UnwindSafe for RateTier
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