#[non_exhaustive]pub enum TariffSeason {
Default,
Summer,
Autumn,
Winter,
Spring,
NonSummer,
Holiday,
Weekend,
WeekendHoliday,
Weekday,
}
Expand description
Time of Use season
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Default
Default tariff season
Summer
Summer tariff season with typically higher rates due to increased demand
Autumn
Autumn tariff season with moderate rates
Winter
Winter tariff season with higher rates due to heating demand
Spring
Spring tariff season with moderate rates
NonSummer
Non-summer tariff season (autumn, winter, spring combined)
Holiday
Holiday tariff period with special rates
Weekend
Weekend tariff period with typically lower rates
WeekendHoliday
Combined weekend and holiday tariff period
Weekday
Weekday tariff period with standard rates
Trait Implementations§
Source§impl Clone for TariffSeason
impl Clone for TariffSeason
Source§fn clone(&self) -> TariffSeason
fn clone(&self) -> TariffSeason
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 TariffSeason
impl Debug for TariffSeason
Source§impl<'de> Deserialize<'de> for TariffSeason
impl<'de> Deserialize<'de> for TariffSeason
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
Source§impl Display for TariffSeason
impl Display for TariffSeason
Source§impl PartialEq for TariffSeason
impl PartialEq for TariffSeason
impl Eq for TariffSeason
impl StructuralPartialEq for TariffSeason
Auto Trait Implementations§
impl Freeze for TariffSeason
impl RefUnwindSafe for TariffSeason
impl Send for TariffSeason
impl Sync for TariffSeason
impl Unpin for TariffSeason
impl UnwindSafe for TariffSeason
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