pub struct TariffPriceSheet {
pub meta: Bo4eMeta,
pub designation: Option<String>,
pub description: Option<String>,
pub division: Option<Division>,
pub customer_type: Option<CustomerType>,
pub price_sheet_number: Option<String>,
pub validity_period: Option<TimePeriod>,
pub valid_from: Option<DateTime<Utc>>,
pub valid_until: Option<DateTime<Utc>>,
pub positions: Vec<TariffPricePosition>,
pub publisher: Option<Box<BusinessPartner>>,
}Expand description
A tariff price sheet containing tariff-specific pricing.
German: Tarifpreisblatt
§Example
use bo4e_core::bo::TariffPriceSheet;
use bo4e_core::enums::{CustomerType, Division};
let price_sheet = TariffPriceSheet {
designation: Some("Haushaltstarif Preisblatt 2024".to_string()),
division: Some(Division::Electricity),
customer_type: Some(CustomerType::Household),
..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)
customer_type: Option<CustomerType>Target customer type (Kundentyp)
price_sheet_number: Option<String>Price sheet number/identifier (Preisblattnummer)
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<TariffPricePosition>Tariff price positions (Tarifpreispositionen)
publisher: Option<Box<BusinessPartner>>Publisher/provider of the price sheet
Trait Implementations§
Source§impl Bo4eObject for TariffPriceSheet
impl Bo4eObject for TariffPriceSheet
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 TariffPriceSheet
impl Clone for TariffPriceSheet
Source§fn clone(&self) -> TariffPriceSheet
fn clone(&self) -> TariffPriceSheet
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 TariffPriceSheet
impl Debug for TariffPriceSheet
Source§impl Default for TariffPriceSheet
impl Default for TariffPriceSheet
Source§fn default() -> TariffPriceSheet
fn default() -> TariffPriceSheet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TariffPriceSheet
impl<'de> Deserialize<'de> for TariffPriceSheet
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 TariffPriceSheet
impl PartialEq for TariffPriceSheet
Source§impl Serialize for TariffPriceSheet
impl Serialize for TariffPriceSheet
impl StructuralPartialEq for TariffPriceSheet
Auto Trait Implementations§
impl Freeze for TariffPriceSheet
impl RefUnwindSafe for TariffPriceSheet
impl Send for TariffPriceSheet
impl Sync for TariffPriceSheet
impl Unpin for TariffPriceSheet
impl UnsafeUnpin for TariffPriceSheet
impl UnwindSafe for TariffPriceSheet
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