pub struct HardwarePriceSheet {Show 13 fields
pub meta: Bo4eMeta,
pub designation: Option<String>,
pub description: Option<String>,
pub division: Option<Division>,
pub price_sheet_number: Option<String>,
pub validity_period: Option<TimePeriod>,
pub valid_from: Option<DateTime<Utc>>,
pub valid_until: Option<DateTime<Utc>>,
pub hardware_items: Vec<Hardware>,
pub installation_price: Option<Price>,
pub rental_price: Option<Price>,
pub purchase_price: Option<Price>,
pub provider: Option<Box<BusinessPartner>>,
}Expand description
A price sheet for hardware (meters, communication devices, etc.).
German: PreisblattHardware
§Example
use bo4e_core::bo::HardwarePriceSheet;
use bo4e_core::enums::Division;
let price_sheet = HardwarePriceSheet {
designation: Some("Hardware Preisblatt 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_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)
hardware_items: Vec<Hardware>Hardware items with pricing (Hardware)
installation_price: Option<Price>Installation price (Installationspreis)
rental_price: Option<Price>Rental price per unit (Mietpreis)
purchase_price: Option<Price>Purchase price (Kaufpreis)
provider: Option<Box<BusinessPartner>>Hardware provider
Trait Implementations§
Source§impl Bo4eObject for HardwarePriceSheet
impl Bo4eObject for HardwarePriceSheet
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 HardwarePriceSheet
impl Clone for HardwarePriceSheet
Source§fn clone(&self) -> HardwarePriceSheet
fn clone(&self) -> HardwarePriceSheet
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 HardwarePriceSheet
impl Debug for HardwarePriceSheet
Source§impl Default for HardwarePriceSheet
impl Default for HardwarePriceSheet
Source§fn default() -> HardwarePriceSheet
fn default() -> HardwarePriceSheet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HardwarePriceSheet
impl<'de> Deserialize<'de> for HardwarePriceSheet
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 HardwarePriceSheet
impl PartialEq for HardwarePriceSheet
Source§impl Serialize for HardwarePriceSheet
impl Serialize for HardwarePriceSheet
impl StructuralPartialEq for HardwarePriceSheet
Auto Trait Implementations§
impl Freeze for HardwarePriceSheet
impl RefUnwindSafe for HardwarePriceSheet
impl Send for HardwarePriceSheet
impl Sync for HardwarePriceSheet
impl Unpin for HardwarePriceSheet
impl UnsafeUnpin for HardwarePriceSheet
impl UnwindSafe for HardwarePriceSheet
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