Skip to content

Commit 56956fe

Browse files
committed
process.rs: Remove some unnecessary Deserialize derives
1 parent bbef385 commit 56956fe

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/process.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use crate::id::define_id_type;
55
use crate::region::RegionID;
66
use crate::time_slice::TimeSliceID;
77
use indexmap::IndexMap;
8-
use serde::Deserialize;
98
use serde_string_enum::DeserializeLabeledStringEnum;
109
use std::collections::{HashMap, HashSet};
1110
use std::ops::RangeInclusive;
@@ -79,7 +78,7 @@ impl Process {
7978
}
8079

8180
/// Represents a maximum annual commodity flow for a given process
82-
#[derive(PartialEq, Debug, Deserialize, Clone)]
81+
#[derive(PartialEq, Debug, Clone)]
8382
pub struct ProcessFlow {
8483
/// The commodity produced or consumed by this flow
8584
pub commodity: Rc<Commodity>,
@@ -102,18 +101,18 @@ pub struct ProcessFlow {
102101
/// Type of commodity flow (see [`ProcessFlow`])
103102
#[derive(PartialEq, Default, Debug, Clone, DeserializeLabeledStringEnum)]
104103
pub enum FlowType {
104+
/// The input to output flow ratio is fixed
105105
#[default]
106106
#[string = "fixed"]
107-
/// The input to output flow ratio is fixed
108107
Fixed,
109-
#[string = "flexible"]
110108
/// The flow ratio can vary, subject to overall flow of a specified group of commodities whose
111109
/// input/output ratio must be as per user input data
110+
#[string = "flexible"]
112111
Flexible,
113112
}
114113

115114
/// Additional parameters for a process
116-
#[derive(PartialEq, Clone, Debug, Deserialize)]
115+
#[derive(PartialEq, Clone, Debug)]
117116
pub struct ProcessParameter {
118117
/// Overnight capital cost per unit capacity
119118
pub capital_cost: f64,

0 commit comments

Comments
 (0)