pub struct TariffInfo {Show 13 fields
pub meta: Bo4eMeta,
pub tariff_name: Option<String>,
pub description: Option<String>,
pub division: Option<Division>,
pub customer_type: Option<CustomerType>,
pub website: Option<String>,
pub validity_period: Option<TimePeriod>,
pub available_from: Option<DateTime<Utc>>,
pub available_until: Option<DateTime<Utc>>,
pub energy_mix: Option<EnergyMix>,
pub price_guarantee: Option<PriceGuarantee>,
pub restrictions: Vec<TariffRestriction>,
pub supplier: Option<Box<BusinessPartner>>,
}Expand description
Tariff information/overview.
Provides summary information about a tariff without the full details.
German: Tarifinfo
§Example
use bo4e_core::bo::TariffInfo;
use bo4e_core::enums::{CustomerType, Division};
let tariff_info = TariffInfo {
tariff_name: Some("Oekostrom Basis".to_string()),
division: Some(Division::Electricity),
customer_type: Some(CustomerType::Household),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
tariff_name: Option<String>Tariff name (Tarifname)
description: Option<String>Tariff description (Tarifbeschreibung)
division: Option<Division>Energy division (Sparte)
customer_type: Option<CustomerType>Target customer type (Kundentyp)
website: Option<String>Website URL for tariff information (Website)
validity_period: Option<TimePeriod>Validity period (Gueltigkeitszeitraum)
available_from: Option<DateTime<Utc>>Start date of tariff availability (Angebotsdatum)
available_until: Option<DateTime<Utc>>End date of tariff availability (Enddatum)
energy_mix: Option<EnergyMix>Energy mix composition (Energiemix)
price_guarantee: Option<PriceGuarantee>Price guarantee (Preisgarantie)
restrictions: Vec<TariffRestriction>Tariff restrictions (Tarifeinschraenkungen)
supplier: Option<Box<BusinessPartner>>Provider/supplier
Trait Implementations§
Source§impl Bo4eObject for TariffInfo
impl Bo4eObject for TariffInfo
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 TariffInfo
impl Clone for TariffInfo
Source§fn clone(&self) -> TariffInfo
fn clone(&self) -> TariffInfo
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 TariffInfo
impl Debug for TariffInfo
Source§impl Default for TariffInfo
impl Default for TariffInfo
Source§fn default() -> TariffInfo
fn default() -> TariffInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TariffInfo
impl<'de> Deserialize<'de> for TariffInfo
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 TariffInfo
impl PartialEq for TariffInfo
Source§impl Serialize for TariffInfo
impl Serialize for TariffInfo
impl StructuralPartialEq for TariffInfo
Auto Trait Implementations§
impl Freeze for TariffInfo
impl RefUnwindSafe for TariffInfo
impl Send for TariffInfo
impl Sync for TariffInfo
impl Unpin for TariffInfo
impl UnsafeUnpin for TariffInfo
impl UnwindSafe for TariffInfo
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