pub struct TariffRestriction {
pub meta: Bo4eMeta,
pub customer_types: Vec<CustomerType>,
pub division: Option<Division>,
pub required_features: Vec<TariffFeature>,
pub excluded_features: Vec<TariffFeature>,
pub min_annual_consumption: Option<f64>,
pub max_annual_consumption: Option<f64>,
pub notes: Option<String>,
}Expand description
Restrictions that apply to a tariff.
German: Tarifeinschraenkung
§Example
use bo4e_core::com::TariffRestriction;
use bo4e_core::enums::CustomerType;
let restriction = TariffRestriction {
customer_types: vec![CustomerType::Private],
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
customer_types: Vec<CustomerType>Applicable customer types (Kundentypen)
division: Option<Division>Energy division (Sparte)
required_features: Vec<TariffFeature>Required tariff features (Tarifmerkmale)
excluded_features: Vec<TariffFeature>Excluded tariff features (Ausgeschlossene Tarifmerkmale)
min_annual_consumption: Option<f64>Minimum annual consumption (Mindestjahresverbrauch)
max_annual_consumption: Option<f64>Maximum annual consumption (Höchstjahresverbrauch)
notes: Option<String>Additional notes (Bemerkung)
Trait Implementations§
Source§impl Bo4eObject for TariffRestriction
impl Bo4eObject for TariffRestriction
Source§fn type_name_german() -> &'static str
fn type_name_german() -> &'static str
Returns the German type name as used in the
_typ field. Read moreSource§fn type_name_english() -> &'static str
fn type_name_english() -> &'static str
Returns the English type name. Read more
Source§impl Clone for TariffRestriction
impl Clone for TariffRestriction
Source§fn clone(&self) -> TariffRestriction
fn clone(&self) -> TariffRestriction
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 TariffRestriction
impl Debug for TariffRestriction
Source§impl Default for TariffRestriction
impl Default for TariffRestriction
Source§fn default() -> TariffRestriction
fn default() -> TariffRestriction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TariffRestriction
impl<'de> Deserialize<'de> for TariffRestriction
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 PartialEq for TariffRestriction
impl PartialEq for TariffRestriction
Source§impl Serialize for TariffRestriction
impl Serialize for TariffRestriction
impl StructuralPartialEq for TariffRestriction
Auto Trait Implementations§
impl Freeze for TariffRestriction
impl RefUnwindSafe for TariffRestriction
impl Send for TariffRestriction
impl Sync for TariffRestriction
impl Unpin for TariffRestriction
impl UnsafeUnpin for TariffRestriction
impl UnwindSafe for TariffRestriction
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