Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/commodity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub type DemandMap = HashMap<(RegionID, u32, TimeSliceSelection), Flow>;
///
/// Represents a substance (e.g. CO2) or form of energy (e.g. electricity) that can be produced or
/// consumed by processes.
#[derive(PartialEq, Debug, Deserialize)]
#[derive(PartialEq, Debug, Deserialize, Clone)]
pub struct Commodity {
/// Unique identifier for the commodity (e.g. "ELC")
pub id: CommodityID,
Expand Down Expand Up @@ -79,7 +79,7 @@ pub struct CommodityLevy {
}

/// Commodity balance type
#[derive(PartialEq, Debug, DeserializeLabeledStringEnum)]
#[derive(PartialEq, Debug, DeserializeLabeledStringEnum, Clone)]
pub enum CommodityType {
/// Supply and demand of this commodity must be balanced
#[string = "sed"]
Expand Down
Loading
Loading