Skip to content

Commit

Permalink
feat: added kWh as unit
Browse files Browse the repository at this point in the history
  • Loading branch information
ocni-dtu committed Jun 5, 2024
1 parent e149b2b commit e7f450a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/models/src/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pub enum Unit {
KG,
TONES,
PCS,
KWH,
L,
M2R1,
KM,
Expand All @@ -34,6 +35,7 @@ impl From<&String> for Unit {
"tones" | "tonnes" => Unit::TONES,
"pcs" | "stk" | "pcs." => Unit::PCS,
"l" => Unit::L,
"kwh" => Unit::KWH,
"m2r1" => Unit::M2R1,
"tones*km" => Unit::TONES_KM,
_ => Unit::UNKNOWN,
Expand Down

0 comments on commit e7f450a

Please sign in to comment.