pub struct ExternalCostPosition {
pub meta: Bo4eMeta,
pub title: Option<String>,
pub amount: Option<Amount>,
pub article_description: Option<String>,
pub unit_price: Option<Price>,
pub start_date: Option<DateTime<Utc>>,
pub end_date: Option<DateTime<Utc>>,
pub quantity_value: Option<f64>,
pub quantity_unit: Option<Unit>,
pub external_reference: Option<String>,
}Expand description
A cost position for external (third-party) costs.
German: Fremdkostenposition
§Example
use bo4e_core::com::{ExternalCostPosition, Amount};
let position = ExternalCostPosition {
title: Some("Netzbetreiber ABC".to_string()),
amount: Some(Amount::eur(120.0)),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
title: Option<String>Title of the position (Positionstitel)
amount: Option<Amount>Total amount for this position (Betrag)
article_description: Option<String>Description of the article (Artikelbezeichnung)
unit_price: Option<Price>Price per unit (Einzelpreis)
start_date: Option<DateTime<Utc>>Start date inclusive (Von)
end_date: Option<DateTime<Utc>>End date exclusive (Bis)
quantity_value: Option<f64>Quantity value (Menge - Wert)
quantity_unit: Option<Unit>Quantity unit (Menge - Einheit)
external_reference: Option<String>External ID/reference (Link)
Trait Implementations§
Source§impl Bo4eObject for ExternalCostPosition
impl Bo4eObject for ExternalCostPosition
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 ExternalCostPosition
impl Clone for ExternalCostPosition
Source§fn clone(&self) -> ExternalCostPosition
fn clone(&self) -> ExternalCostPosition
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 ExternalCostPosition
impl Debug for ExternalCostPosition
Source§impl Default for ExternalCostPosition
impl Default for ExternalCostPosition
Source§fn default() -> ExternalCostPosition
fn default() -> ExternalCostPosition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExternalCostPosition
impl<'de> Deserialize<'de> for ExternalCostPosition
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 ExternalCostPosition
impl PartialEq for ExternalCostPosition
Source§impl Serialize for ExternalCostPosition
impl Serialize for ExternalCostPosition
impl StructuralPartialEq for ExternalCostPosition
Auto Trait Implementations§
impl Freeze for ExternalCostPosition
impl RefUnwindSafe for ExternalCostPosition
impl Send for ExternalCostPosition
impl Sync for ExternalCostPosition
impl Unpin for ExternalCostPosition
impl UnsafeUnpin for ExternalCostPosition
impl UnwindSafe for ExternalCostPosition
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