pub struct TariffCosts {Show 13 fields
pub meta: Bo4eMeta,
pub designation: Option<String>,
pub description: Option<String>,
pub division: Option<Division>,
pub period: Option<TimePeriod>,
pub total_amount: Option<Amount>,
pub base_price: Option<Price>,
pub base_price_cost: Option<Amount>,
pub working_price: Option<Price>,
pub working_price_cost: Option<Amount>,
pub consumption: Option<f64>,
pub cost_blocks: Vec<CostBlock>,
pub tariff: Option<Box<Tariff>>,
}Expand description
Tariff-related costs.
Represents the costs associated with a specific tariff.
German: Tarifkosten
§Example
use bo4e_core::bo::TariffCosts;
use bo4e_core::com::{Amount, Price};
use bo4e_core::enums::Division;
let tariff_costs = TariffCosts {
designation: Some("Haushaltstarif Kosten".to_string()),
division: Some(Division::Electricity),
base_price_cost: Some(Amount::eur(119.40)),
working_price_cost: Some(Amount::eur(960.00)),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
designation: Option<String>Name/designation of the tariff costs (Bezeichnung)
description: Option<String>Description (Beschreibung)
division: Option<Division>Energy division (Sparte)
period: Option<TimePeriod>Period the costs apply to (Abrechnungszeitraum)
total_amount: Option<Amount>Total amount (Gesamtbetrag)
base_price: Option<Price>Base price applied (Grundpreis)
base_price_cost: Option<Amount>Base price cost (Grundpreiskosten)
working_price: Option<Price>Working price applied (Arbeitspreis)
working_price_cost: Option<Amount>Working price cost (Arbeitspreiskosten)
consumption: Option<f64>Consumption quantity (Verbrauchsmenge)
cost_blocks: Vec<CostBlock>Cost blocks (Kostenbloecke)
tariff: Option<Box<Tariff>>Reference to the tariff
Trait Implementations§
Source§impl Bo4eObject for TariffCosts
impl Bo4eObject for TariffCosts
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 TariffCosts
impl Clone for TariffCosts
Source§fn clone(&self) -> TariffCosts
fn clone(&self) -> TariffCosts
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 TariffCosts
impl Debug for TariffCosts
Source§impl Default for TariffCosts
impl Default for TariffCosts
Source§fn default() -> TariffCosts
fn default() -> TariffCosts
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TariffCosts
impl<'de> Deserialize<'de> for TariffCosts
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 TariffCosts
impl PartialEq for TariffCosts
Source§impl Serialize for TariffCosts
impl Serialize for TariffCosts
impl StructuralPartialEq for TariffCosts
Auto Trait Implementations§
impl Freeze for TariffCosts
impl RefUnwindSafe for TariffCosts
impl Send for TariffCosts
impl Sync for TariffCosts
impl Unpin for TariffCosts
impl UnsafeUnpin for TariffCosts
impl UnwindSafe for TariffCosts
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