pub enum TransferFee {
Unlisted,
Unverified,
Simple(Cost),
SpotPriceVariable {
base_cost: Money,
spot_price_multiplier: f64,
approximated: bool,
},
Periods(CostPeriods),
}Variants§
Unlisted
Price was not listed on their website
Unverified
Transfer fee has not been verified by us
Simple(Cost)
Fee does not change except possibly by fuse size
SpotPriceVariable
Transfer fee that varies by the current spot price We have currently only observed that Växjö Energi uses this variant
Periods(CostPeriods)
Implementations§
Source§impl TransferFee
impl TransferFee
pub const fn is_unverified(&self) -> bool
pub const fn simple_cost(&self) -> Option<Cost>
pub fn simplified( &self, fuse_size: u16, yearly_consumption: u32, ) -> TransferFeeSimplified
Trait Implementations§
Source§impl Clone for TransferFee
impl Clone for TransferFee
Source§fn clone(&self) -> TransferFee
fn clone(&self) -> TransferFee
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 TransferFee
impl Debug for TransferFee
Source§impl Serialize for TransferFee
impl Serialize for TransferFee
impl Copy for TransferFee
Auto Trait Implementations§
impl Freeze for TransferFee
impl RefUnwindSafe for TransferFee
impl Send for TransferFee
impl Sync for TransferFee
impl Unpin for TransferFee
impl UnwindSafe for TransferFee
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