pub struct ExternalCostBlock {
pub meta: Bo4eMeta,
pub designation: Option<String>,
pub cost_class: Option<CostClass>,
pub total_amount: Option<Amount>,
}Expand description
A block of external (third-party) costs.
German: Fremdkostenblock
§Example
use bo4e_core::com::{ExternalCostBlock, Amount};
let cost_block = ExternalCostBlock {
designation: Some("Netzkosten Fremd".to_string()),
total_amount: Some(Amount::eur(350.0)),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
designation: Option<String>Name/designation of the cost block (Kostenblockbezeichnung)
cost_class: Option<CostClass>Cost class (Kostenklasse)
total_amount: Option<Amount>Sum of all costs in this block (Summe Kostenblock)
Trait Implementations§
Source§impl Bo4eObject for ExternalCostBlock
impl Bo4eObject for ExternalCostBlock
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 ExternalCostBlock
impl Clone for ExternalCostBlock
Source§fn clone(&self) -> ExternalCostBlock
fn clone(&self) -> ExternalCostBlock
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 ExternalCostBlock
impl Debug for ExternalCostBlock
Source§impl Default for ExternalCostBlock
impl Default for ExternalCostBlock
Source§fn default() -> ExternalCostBlock
fn default() -> ExternalCostBlock
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExternalCostBlock
impl<'de> Deserialize<'de> for ExternalCostBlock
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 ExternalCostBlock
impl PartialEq for ExternalCostBlock
Source§impl Serialize for ExternalCostBlock
impl Serialize for ExternalCostBlock
impl StructuralPartialEq for ExternalCostBlock
Auto Trait Implementations§
impl Freeze for ExternalCostBlock
impl RefUnwindSafe for ExternalCostBlock
impl Send for ExternalCostBlock
impl Sync for ExternalCostBlock
impl Unpin for ExternalCostBlock
impl UnsafeUnpin for ExternalCostBlock
impl UnwindSafe for ExternalCostBlock
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