pub struct ConcessionFee {
pub meta: Bo4eMeta,
pub fee_type: Option<ConcessionFeeType>,
pub customer_group: Option<ConcessionFeeCustomerGroup>,
pub value: Option<f64>,
pub currency: Option<Currency>,
pub reference_unit: Option<Unit>,
pub description: Option<String>,
}Expand description
A concession fee charged by municipalities.
German: Konzessionsabgabe
§Example
use bo4e_core::com::ConcessionFee;
use bo4e_core::enums::{ConcessionFeeType, ConcessionFeeCustomerGroup};
let fee = ConcessionFee {
fee_type: Some(ConcessionFeeType::TariffCustomer),
customer_group: Some(ConcessionFeeCustomerGroup::ElectricityTariff25000),
value: Some(1.59),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
fee_type: Option<ConcessionFeeType>Type of concession fee (Konzessionsabgabentyp)
customer_group: Option<ConcessionFeeCustomerGroup>Customer group for the fee (Kundengruppe KA)
value: Option<f64>Fee 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 ConcessionFee
impl Bo4eObject for ConcessionFee
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 ConcessionFee
impl Clone for ConcessionFee
Source§fn clone(&self) -> ConcessionFee
fn clone(&self) -> ConcessionFee
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 ConcessionFee
impl Debug for ConcessionFee
Source§impl Default for ConcessionFee
impl Default for ConcessionFee
Source§fn default() -> ConcessionFee
fn default() -> ConcessionFee
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConcessionFee
impl<'de> Deserialize<'de> for ConcessionFee
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 ConcessionFee
impl PartialEq for ConcessionFee
Source§impl Serialize for ConcessionFee
impl Serialize for ConcessionFee
impl StructuralPartialEq for ConcessionFee
Auto Trait Implementations§
impl Freeze for ConcessionFee
impl RefUnwindSafe for ConcessionFee
impl Send for ConcessionFee
impl Sync for ConcessionFee
impl Unpin for ConcessionFee
impl UnsafeUnpin for ConcessionFee
impl UnwindSafe for ConcessionFee
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