pub struct PriceTier {
pub meta: Bo4eMeta,
pub lower_limit: Option<f64>,
pub upper_limit: Option<f64>,
pub unit_price: Option<f64>,
pub tier_number: Option<i32>,
pub article_id: Option<String>,
}Expand description
A price tier based on consumption brackets.
German: Preisstaffel
§Example
use bo4e_core::com::PriceTier;
let tier = PriceTier {
lower_limit: Some(0.0),
upper_limit: Some(1000.0),
unit_price: Some(0.30),
tier_number: Some(1),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
lower_limit: Option<f64>Lower consumption limit inclusive (Staffelgrenze von)
upper_limit: Option<f64>Upper consumption limit exclusive (Staffelgrenze bis)
unit_price: Option<f64>Unit price for this tier (Einheitspreis)
tier_number: Option<i32>Tier number/sequence (Staffelnummer)
article_id: Option<String>Article ID reference (Artikel-ID)
Trait Implementations§
Source§impl Bo4eObject for PriceTier
impl Bo4eObject for PriceTier
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 PriceTier
impl<'de> Deserialize<'de> for PriceTier
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 PriceTier
Auto Trait Implementations§
impl Freeze for PriceTier
impl RefUnwindSafe for PriceTier
impl Send for PriceTier
impl Sync for PriceTier
impl Unpin for PriceTier
impl UnwindSafe for PriceTier
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