pub struct ServicePriceSheet {
pub meta: Bo4eMeta,
pub designation: Option<String>,
pub description: Option<String>,
pub division: Option<Division>,
pub service_type: Option<ServiceType>,
pub price_sheet_number: Option<String>,
pub validity_period: Option<TimePeriod>,
pub valid_from: Option<DateTime<Utc>>,
pub valid_until: Option<DateTime<Utc>>,
pub prices: Vec<ServicePrice>,
pub provider: Option<Box<BusinessPartner>>,
}Expand description
A price sheet for services (e.g., metering, billing).
German: PreisblattDienstleistung
§Example
use bo4e_core::bo::ServicePriceSheet;
use bo4e_core::enums::{Division, ServiceType};
let price_sheet = ServicePriceSheet {
designation: Some("Dienstleistungspreisblatt 2024".to_string()),
division: Some(Division::Electricity),
service_type: Some(ServiceType::RemoteReading),
..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)
service_type: Option<ServiceType>Type of service (Dienstleistungsart)
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)
prices: Vec<ServicePrice>Service prices (Dienstleistungspreise)
provider: Option<Box<BusinessPartner>>Service provider
Trait Implementations§
Source§impl Bo4eObject for ServicePriceSheet
impl Bo4eObject for ServicePriceSheet
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 ServicePriceSheet
impl Clone for ServicePriceSheet
Source§fn clone(&self) -> ServicePriceSheet
fn clone(&self) -> ServicePriceSheet
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 ServicePriceSheet
impl Debug for ServicePriceSheet
Source§impl Default for ServicePriceSheet
impl Default for ServicePriceSheet
Source§fn default() -> ServicePriceSheet
fn default() -> ServicePriceSheet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServicePriceSheet
impl<'de> Deserialize<'de> for ServicePriceSheet
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 ServicePriceSheet
impl PartialEq for ServicePriceSheet
Source§impl Serialize for ServicePriceSheet
impl Serialize for ServicePriceSheet
impl StructuralPartialEq for ServicePriceSheet
Auto Trait Implementations§
impl Freeze for ServicePriceSheet
impl RefUnwindSafe for ServicePriceSheet
impl Send for ServicePriceSheet
impl Sync for ServicePriceSheet
impl Unpin for ServicePriceSheet
impl UnwindSafe for ServicePriceSheet
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