pub enum FeedInRevenue {
Simple(Cost),
Unverified,
Unlisted,
SpotPriceVariable {
base_cost: Money,
spot_price_multiplier: f64,
approximated: bool,
},
Periods(CostPeriods),
}Expand description
Feed-in revenue, per kWh (usually from solar production) A Swedish concept for “thanking” micro producers (<=43,5 kW) for reducing losses in the grid
Variants§
Simple(Cost)
Unverified
Not yet checked
Unlisted
Could not be located on their website or elsewhere
SpotPriceVariable
Varies by the current spot price
Fields
Periods(CostPeriods)
Implementations§
Source§impl FeedInRevenue
impl FeedInRevenue
pub const fn is_unverified(&self) -> bool
pub const fn spot_price_variable( base_cost_subunit: f64, spot_price_multiplier: f64, approximated: bool, ) -> Self
pub fn simplified( &self, fuse_size: u16, yearly_consumption: u32, language: Language, ) -> FeedInRevenueSimplified
pub fn kwh_revenue<Tz: TimeZone>( &self, timestamp: DateTime<Tz>, spotprice: Money, fuse_size: u16, yearly_consumption: u32, ) -> Money
Trait Implementations§
Source§impl Clone for FeedInRevenue
impl Clone for FeedInRevenue
Source§fn clone(&self) -> FeedInRevenue
fn clone(&self) -> FeedInRevenue
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 FeedInRevenue
impl Debug for FeedInRevenue
Source§impl Serialize for FeedInRevenue
impl Serialize for FeedInRevenue
impl Copy for FeedInRevenue
Auto Trait Implementations§
impl Freeze for FeedInRevenue
impl RefUnwindSafe for FeedInRevenue
impl Send for FeedInRevenue
impl Sync for FeedInRevenue
impl Unpin for FeedInRevenue
impl UnwindSafe for FeedInRevenue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more