pub struct Costs {
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 cost_blocks: Vec<CostBlock>,
pub market_location: Option<Box<MarketLocation>>,
}Expand description
A cost breakdown/summary.
German: Kosten
§Example
use bo4e_core::bo::Costs;
use bo4e_core::com::Amount;
use bo4e_core::enums::Division;
let costs = Costs {
designation: Some("Jahreskosten 2024".to_string()),
division: Some(Division::Electricity),
total_amount: Some(Amount::eur(2500.00)),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
designation: Option<String>Name/designation of the cost summary (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)
cost_blocks: Vec<CostBlock>Cost blocks (Kostenbloecke)
market_location: Option<Box<MarketLocation>>Related market location (Marktlokation)
Trait Implementations§
Source§impl Bo4eObject for Costs
impl Bo4eObject for Costs
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<'de> Deserialize<'de> for Costs
impl<'de> Deserialize<'de> for Costs
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
impl StructuralPartialEq for Costs
Auto Trait Implementations§
impl Freeze for Costs
impl RefUnwindSafe for Costs
impl Send for Costs
impl Sync for Costs
impl Unpin for Costs
impl UnwindSafe for Costs
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