pub struct PriceSheet {
pub meta: Bo4eMeta,
pub designation: Option<String>,
pub description: Option<String>,
pub division: Option<Division>,
pub price_number: Option<String>,
pub validity_period: Option<TimePeriod>,
pub valid_from: Option<DateTime<Utc>>,
pub valid_until: Option<DateTime<Utc>>,
pub positions: Vec<PricePosition>,
pub publisher: Option<Box<BusinessPartner>>,
}Expand description
A generic price sheet containing price positions.
German: Preisblatt
§Example
use bo4e_core::bo::PriceSheet;
use bo4e_core::enums::Division;
let price_sheet = PriceSheet {
designation: Some("Standardpreisblatt 2024".to_string()),
division: Some(Division::Electricity),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
designation: Option<String>Name/designation of the price sheet (Bezeichnung)
description: Option<String>Description (Beschreibung)
division: Option<Division>Energy division (Sparte)
price_number: Option<String>Price number/identifier (Preisnummer)
validity_period: Option<TimePeriod>Validity period (Gueltigkeitszeitraum)
valid_from: Option<DateTime<Utc>>Valid from date (Gueltig ab)
valid_until: Option<DateTime<Utc>>Valid until date (Gueltig bis)
positions: Vec<PricePosition>Price positions (Preispositionen)
publisher: Option<Box<BusinessPartner>>Publisher of the price sheet
Trait Implementations§
Source§impl Bo4eObject for PriceSheet
impl Bo4eObject for PriceSheet
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 PriceSheet
impl Clone for PriceSheet
Source§fn clone(&self) -> PriceSheet
fn clone(&self) -> PriceSheet
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 PriceSheet
impl Debug for PriceSheet
Source§impl Default for PriceSheet
impl Default for PriceSheet
Source§fn default() -> PriceSheet
fn default() -> PriceSheet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PriceSheet
impl<'de> Deserialize<'de> for PriceSheet
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 PriceSheet
impl PartialEq for PriceSheet
Source§impl Serialize for PriceSheet
impl Serialize for PriceSheet
impl StructuralPartialEq for PriceSheet
Auto Trait Implementations§
impl Freeze for PriceSheet
impl RefUnwindSafe for PriceSheet
impl Send for PriceSheet
impl Sync for PriceSheet
impl Unpin for PriceSheet
impl UnwindSafe for PriceSheet
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