pub struct PriceList { /* private fields */ }Implementations§
Source§impl PriceList
impl PriceList
pub const fn variant(&self) -> Option<&'static str>
pub const fn from_date(&self) -> NaiveDate
pub const fn monthly_fee(&self) -> &Cost
pub const fn monthly_production_fee(&self) -> &Cost
pub const fn transfer_fee(&self) -> &TransferFee
pub const fn feed_in_revenue(&self) -> &FeedInRevenue
pub const fn power_tariff(&self) -> &PowerTariff
Sourcepub fn kwh_fee(
&self,
timestamp: DateTime<Tz>,
spotprice: Money,
fuse_size: u16,
yearly_consumption: u32,
) -> Money
pub fn kwh_fee( &self, timestamp: DateTime<Tz>, spotprice: Money, fuse_size: u16, yearly_consumption: u32, ) -> Money
Total fee per kWh
Please note that taxes are not included.
Sourcepub fn kwh_revenue(
&self,
timestamp: DateTime<Tz>,
spotprice: Money,
fuse_size: u16,
yearly_consumption: u32,
) -> Money
pub fn kwh_revenue( &self, timestamp: DateTime<Tz>, spotprice: Money, fuse_size: u16, yearly_consumption: u32, ) -> Money
Total revenue per kWh
Please note that tax reductions are not included.
pub fn simplified( &self, fuse_size: u16, yearly_consumption: u32, language: Language, ) -> PriceListSimplified
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PriceList
impl RefUnwindSafe for PriceList
impl Send for PriceList
impl Sync for PriceList
impl Unpin for PriceList
impl UnwindSafe for PriceList
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