pub struct ServicePrice {
pub meta: Bo4eMeta,
pub service_type: Option<ServiceType>,
pub value: Option<f64>,
pub currency: Option<Currency>,
pub reference_unit: Option<Unit>,
pub description: Option<String>,
}Expand description
A price for a service.
German: Dienstleistungspreis
§Example
use bo4e_core::com::ServicePrice;
use bo4e_core::enums::ServiceType;
let price = ServicePrice {
service_type: Some(ServiceType::Disconnection),
value: Some(75.0),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
service_type: Option<ServiceType>Type of service (Dienstleistungstyp)
value: Option<f64>Price value (Wert)
currency: Option<Currency>Currency (Waehrung)
reference_unit: Option<Unit>Reference unit (Bezugseinheit)
description: Option<String>Description (Beschreibung)
Trait Implementations§
Source§impl Bo4eObject for ServicePrice
impl Bo4eObject for ServicePrice
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 ServicePrice
impl Clone for ServicePrice
Source§fn clone(&self) -> ServicePrice
fn clone(&self) -> ServicePrice
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 ServicePrice
impl Debug for ServicePrice
Source§impl Default for ServicePrice
impl Default for ServicePrice
Source§fn default() -> ServicePrice
fn default() -> ServicePrice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServicePrice
impl<'de> Deserialize<'de> for ServicePrice
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 ServicePrice
impl PartialEq for ServicePrice
Source§impl Serialize for ServicePrice
impl Serialize for ServicePrice
impl StructuralPartialEq for ServicePrice
Auto Trait Implementations§
impl Freeze for ServicePrice
impl RefUnwindSafe for ServicePrice
impl Send for ServicePrice
impl Sync for ServicePrice
impl Unpin for ServicePrice
impl UnwindSafe for ServicePrice
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