Co-authored-by: Daniel Løvbrøtte Olsen <danio@pvv.ntnu.no>
Co-authored-by: Eirik Witterso <eirikwit@pvv.ntnu.no>
This commit is contained in:
Adrian Gunnar Lauterer 2024-02-24 21:53:40 +01:00 committed by Daniel Olsen
parent c169b97a00
commit bc0f0444cc
1 changed files with 3 additions and 3 deletions

View File

@ -858,19 +858,19 @@ enum Policy {
} }
#[derive(Serialize, Deserialize, Clone, Copy)] #[derive(Serialize, Deserialize, Clone, Copy)]
#[serde(untagged)]
enum Source { enum Source {
#[serde(rename = "market")] #[serde(rename = "market")]
Market, Market,
#[serde(untagged)]
Factory(usize), Factory(usize),
} }
#[derive(Serialize, Deserialize, Clone, Copy)] #[derive(Serialize, Deserialize, Clone, Copy)]
#[serde(untagged)]
enum Destination { enum Destination {
PatternLine(usize),
#[serde(rename = "floor")] #[serde(rename = "floor")]
Floor, Floor,
#[serde(untagged)]
PatternLine(usize),
} }
// Tests // Tests