diff --git a/tools/src/recipe.rs b/tools/src/recipe.rs index b5f7a5a..ddb53ad 100644 --- a/tools/src/recipe.rs +++ b/tools/src/recipe.rs @@ -32,7 +32,7 @@ impl std::fmt::Debug for Quantity { } } -#[derive(Debug, serde::Deserialize)] +#[derive(Debug, serde::Deserialize, PartialEq)] pub struct Input { // Quantity defaults to "amount=1" if omitted. #[serde(default)] @@ -46,24 +46,24 @@ pub struct Output { pub quantity: Quantity, } -#[derive(Debug, serde::Deserialize)] +#[derive(Debug, serde::Deserialize, PartialEq)] pub struct Operator { pub skills: Vec, } -#[derive(Debug, serde::Deserialize)] +#[derive(Debug, serde::Deserialize, PartialEq)] pub struct Dependencies { pub tools: Option>, pub operator: Option, } -#[derive(Debug, serde::Deserialize)] +#[derive(Debug, serde::Deserialize, PartialEq)] pub struct Purchase { pub vendor: Vec, pub documentation: Option>, } -#[derive(Debug, serde::Deserialize)] +#[derive(Debug, serde::Deserialize, PartialEq)] #[allow(non_camel_case_types)] pub enum Action { process(String), @@ -71,7 +71,7 @@ pub enum Action { purchase(Purchase), } -#[derive(Debug, serde::Deserialize)] +#[derive(Debug, serde::Deserialize, PartialEq)] pub struct Recipe { /// `[inputs]` is a Table where each key the the name (unique id) /// of a recipe in the repo, and the value is an Input object.