#[non_exhaustive]pub enum NetworkLevel {
LowVoltage,
MediumVoltage,
HighVoltage,
ExtraHighVoltage,
MediumLowVoltageTransformation,
HighMediumVoltageTransformation,
ExtraHighHighVoltageTransformation,
HighPressure,
MediumPressure,
LowPressure,
}Expand description
Network level within electricity and gas energy types.
Lists possible network levels for electricity (voltage levels) and gas (pressure levels).
German: Netzebene
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.
LowVoltage
Low voltage (Niederspannung) - Electricity
MediumVoltage
Medium voltage (Mittelspannung) - Electricity
HighVoltage
High voltage (Hochspannung) - Electricity
ExtraHighVoltage
Extra high voltage (Höchstspannung) - Electricity
MediumLowVoltageTransformation
Medium to low voltage transformation (MS/NS Umspannung) - Electricity
HighMediumVoltageTransformation
High to medium voltage transformation (HS/MS Umspannung) - Electricity
ExtraHighHighVoltageTransformation
Extra high to high voltage transformation (HöS/HS Umspannung) - Electricity
HighPressure
High pressure (Hochdruck) - Gas
MediumPressure
Medium pressure (Mitteldruck) - Gas
LowPressure
Low pressure (Niederdruck) - Gas
Implementations§
Source§impl NetworkLevel
impl NetworkLevel
Sourcepub fn german_name(&self) -> &'static str
pub fn german_name(&self) -> &'static str
Returns the German name.
Sourcepub fn is_electricity(&self) -> bool
pub fn is_electricity(&self) -> bool
Returns true if this is an electricity network level.
Trait Implementations§
Source§impl Clone for NetworkLevel
impl Clone for NetworkLevel
Source§fn clone(&self) -> NetworkLevel
fn clone(&self) -> NetworkLevel
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 NetworkLevel
impl Debug for NetworkLevel
Source§impl<'de> Deserialize<'de> for NetworkLevel
impl<'de> Deserialize<'de> for NetworkLevel
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 NetworkLevel
impl Hash for NetworkLevel
Source§impl PartialEq for NetworkLevel
impl PartialEq for NetworkLevel
Source§impl Serialize for NetworkLevel
impl Serialize for NetworkLevel
impl Copy for NetworkLevel
impl Eq for NetworkLevel
impl StructuralPartialEq for NetworkLevel
Auto Trait Implementations§
impl Freeze for NetworkLevel
impl RefUnwindSafe for NetworkLevel
impl Send for NetworkLevel
impl Sync for NetworkLevel
impl Unpin for NetworkLevel
impl UnwindSafe for NetworkLevel
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