pub struct ExternalCosts {
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<ExternalCostBlock>,
pub external_party: Option<Box<BusinessPartner>>,
pub market_location: Option<Box<MarketLocation>>,
}Expand description
External/third-party costs.
Represents costs from external parties like network operators, metering service providers, etc.
German: Fremdkosten
§Example
use bo4e_core::bo::ExternalCosts;
use bo4e_core::com::Amount;
use bo4e_core::enums::Division;
let external_costs = ExternalCosts {
designation: Some("Netzkosten 2024".to_string()),
division: Some(Division::Electricity),
total_amount: Some(Amount::eur(350.00)),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
designation: Option<String>Name/designation of the external 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)
cost_blocks: Vec<ExternalCostBlock>External cost blocks (Fremdkostenbloecke)
external_party: Option<Box<BusinessPartner>>External provider/party
market_location: Option<Box<MarketLocation>>Related market location (Marktlokation)
Trait Implementations§
Source§impl Bo4eObject for ExternalCosts
impl Bo4eObject for ExternalCosts
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 ExternalCosts
impl Clone for ExternalCosts
Source§fn clone(&self) -> ExternalCosts
fn clone(&self) -> ExternalCosts
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 ExternalCosts
impl Debug for ExternalCosts
Source§impl Default for ExternalCosts
impl Default for ExternalCosts
Source§fn default() -> ExternalCosts
fn default() -> ExternalCosts
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExternalCosts
impl<'de> Deserialize<'de> for ExternalCosts
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 ExternalCosts
impl PartialEq for ExternalCosts
Source§impl Serialize for ExternalCosts
impl Serialize for ExternalCosts
impl StructuralPartialEq for ExternalCosts
Auto Trait Implementations§
impl Freeze for ExternalCosts
impl RefUnwindSafe for ExternalCosts
impl Send for ExternalCosts
impl Sync for ExternalCosts
impl Unpin for ExternalCosts
impl UnsafeUnpin for ExternalCosts
impl UnwindSafe for ExternalCosts
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