pub struct CommodityLevy {
pub balance_type: BalanceType,
pub value: MoneyPerFlow,
}Expand description
Represents a tax or other external cost on a commodity, as specified in input data.
For example, a CO2 price could be specified in input data to be applied to net CO2. Note that the value can also be negative, indicating an incentive.
Fields§
§balance_type: BalanceTypeType of balance for application of cost
value: MoneyPerFlowCost per unit commodity
Trait Implementations§
Source§impl Clone for CommodityLevy
impl Clone for CommodityLevy
Source§fn clone(&self) -> CommodityLevy
fn clone(&self) -> CommodityLevy
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 CommodityLevy
impl Debug for CommodityLevy
Source§impl PartialEq for CommodityLevy
impl PartialEq for CommodityLevy
impl StructuralPartialEq for CommodityLevy
Auto Trait Implementations§
impl Freeze for CommodityLevy
impl RefUnwindSafe for CommodityLevy
impl Send for CommodityLevy
impl Sync for CommodityLevy
impl Unpin for CommodityLevy
impl UnwindSafe for CommodityLevy
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