pub struct PricePosition {
pub meta: Bo4eMeta,
pub description: Option<String>,
pub price_type: Option<PriceType>,
pub reference_unit: Option<Unit>,
pub calculation_method: Option<CalculationMethod>,
pub tiers: Vec<PriceTier>,
pub article_id: Option<String>,
pub bdew_article_number: Option<String>,
}Expand description
A position in a price sheet with its associated price tiers.
German: Preisposition
§Example
use bo4e_core::com::PricePosition;
use bo4e_core::enums::PriceType;
let position = PricePosition {
description: Some("Arbeitspreis HT".to_string()),
price_type: Some(PriceType::WorkingPriceSingleTariff),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
description: Option<String>Description/name of the price position (Bezeichnung)
price_type: Option<PriceType>Type of price (Preistyp)
reference_unit: Option<Unit>Reference unit (Bezugseinheit)
calculation_method: Option<CalculationMethod>Calculation method (Berechnungsmethode)
tiers: Vec<PriceTier>Price tiers (Preisstaffeln)
article_id: Option<String>Article ID (Artikel-ID)
bdew_article_number: Option<String>BDEW article number (BDEW Artikelnummer)
Trait Implementations§
Source§impl Bo4eObject for PricePosition
impl Bo4eObject for PricePosition
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 PricePosition
impl Clone for PricePosition
Source§fn clone(&self) -> PricePosition
fn clone(&self) -> PricePosition
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 PricePosition
impl Debug for PricePosition
Source§impl Default for PricePosition
impl Default for PricePosition
Source§fn default() -> PricePosition
fn default() -> PricePosition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PricePosition
impl<'de> Deserialize<'de> for PricePosition
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 PricePosition
impl PartialEq for PricePosition
Source§impl Serialize for PricePosition
impl Serialize for PricePosition
impl StructuralPartialEq for PricePosition
Auto Trait Implementations§
impl Freeze for PricePosition
impl RefUnwindSafe for PricePosition
impl Send for PricePosition
impl Sync for PricePosition
impl Unpin for PricePosition
impl UnsafeUnpin for PricePosition
impl UnwindSafe for PricePosition
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