pub struct NetworkCharge {
pub meta: Bo4eMeta,
pub price_type: Option<PriceType>,
pub value: Option<f64>,
pub currency: Option<Currency>,
pub reference_unit: Option<Unit>,
pub description: Option<String>,
pub network_operator_code: Option<String>,
}Expand description
A network charge/fee component.
German: Netzentgelt
§Example
use bo4e_core::com::NetworkCharge;
use bo4e_core::enums::PriceType;
let charge = NetworkCharge {
price_type: Some(PriceType::WorkingPriceSingleTariff),
value: Some(5.82),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
price_type: Option<PriceType>Type of price (Preistyp)
value: Option<f64>Charge value (Wert)
currency: Option<Currency>Currency (Waehrung)
reference_unit: Option<Unit>Reference unit (Bezugseinheit)
description: Option<String>Description (Beschreibung)
network_operator_code: Option<String>Network operator code (Netzbetreiber)
Trait Implementations§
Source§impl Bo4eObject for NetworkCharge
impl Bo4eObject for NetworkCharge
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 NetworkCharge
impl Clone for NetworkCharge
Source§fn clone(&self) -> NetworkCharge
fn clone(&self) -> NetworkCharge
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 NetworkCharge
impl Debug for NetworkCharge
Source§impl Default for NetworkCharge
impl Default for NetworkCharge
Source§fn default() -> NetworkCharge
fn default() -> NetworkCharge
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkCharge
impl<'de> Deserialize<'de> for NetworkCharge
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 NetworkCharge
impl PartialEq for NetworkCharge
Source§impl Serialize for NetworkCharge
impl Serialize for NetworkCharge
impl StructuralPartialEq for NetworkCharge
Auto Trait Implementations§
impl Freeze for NetworkCharge
impl RefUnwindSafe for NetworkCharge
impl Send for NetworkCharge
impl Sync for NetworkCharge
impl Unpin for NetworkCharge
impl UnsafeUnpin for NetworkCharge
impl UnwindSafe for NetworkCharge
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