#[non_exhaustive]pub enum TariffTime {
Standard,
HighTariff,
LowTariff,
}Expand description
Tariff time period.
Used to identify different tariff times, for example for pricing or consumption measurement.
German: Tarifzeit
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.
Standard
Standard tariff time for single-tariff configurations
HighTariff
High tariff time for multi-tariff configurations (HT - Hochtarif)
LowTariff
Low tariff time for multi-tariff configurations (NT - Niedrigtarif)
Implementations§
Source§impl TariffTime
impl TariffTime
Sourcepub fn german_name(&self) -> &'static str
pub fn german_name(&self) -> &'static str
Returns the German name.
Trait Implementations§
Source§impl Clone for TariffTime
impl Clone for TariffTime
Source§fn clone(&self) -> TariffTime
fn clone(&self) -> TariffTime
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 TariffTime
impl Debug for TariffTime
Source§impl<'de> Deserialize<'de> for TariffTime
impl<'de> Deserialize<'de> for TariffTime
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 Hash for TariffTime
impl Hash for TariffTime
Source§impl PartialEq for TariffTime
impl PartialEq for TariffTime
Source§impl Serialize for TariffTime
impl Serialize for TariffTime
impl Copy for TariffTime
impl Eq for TariffTime
impl StructuralPartialEq for TariffTime
Auto Trait Implementations§
impl Freeze for TariffTime
impl RefUnwindSafe for TariffTime
impl Send for TariffTime
impl Sync for TariffTime
impl Unpin for TariffTime
impl UnwindSafe for TariffTime
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