|
|
@ -11,16 +11,16 @@ pub enum Recipe {
|
|
|
|
#[derive(Deserialize, Debug, Clone)]
|
|
|
|
#[derive(Deserialize, Debug, Clone)]
|
|
|
|
#[serde(rename_all(deserialize = "camelCase", serialize = "snake_case"))]
|
|
|
|
#[serde(rename_all(deserialize = "camelCase", serialize = "snake_case"))]
|
|
|
|
pub struct ShapedRecipe {
|
|
|
|
pub struct ShapedRecipe {
|
|
|
|
result: RecipeItem,
|
|
|
|
pub result: RecipeItem,
|
|
|
|
in_shape: Shape,
|
|
|
|
pub in_shape: Shape,
|
|
|
|
out_shape: Option<Shape>,
|
|
|
|
pub out_shape: Option<Shape>,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Deserialize, Debug, Clone)]
|
|
|
|
#[derive(Deserialize, Debug, Clone)]
|
|
|
|
#[serde(rename_all(deserialize = "camelCase", serialize = "snake_case"))]
|
|
|
|
#[serde(rename_all(deserialize = "camelCase", serialize = "snake_case"))]
|
|
|
|
pub struct ShapelessRecipe {
|
|
|
|
pub struct ShapelessRecipe {
|
|
|
|
result: RecipeItem,
|
|
|
|
pub result: RecipeItem,
|
|
|
|
ingredients: Vec<RecipeItem>,
|
|
|
|
pub ingredients: Vec<RecipeItem>,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pub type Shape = Vec<Vec<RecipeItem>>;
|
|
|
|
pub type Shape = Vec<Vec<RecipeItem>>;
|
|
|
@ -40,7 +40,7 @@ pub enum RecipeItem {
|
|
|
|
#[derive(Deserialize, Debug, Clone)]
|
|
|
|
#[derive(Deserialize, Debug, Clone)]
|
|
|
|
#[serde(rename_all(deserialize = "camelCase", serialize = "snake_case"))]
|
|
|
|
#[serde(rename_all(deserialize = "camelCase", serialize = "snake_case"))]
|
|
|
|
pub struct IDMetadataCountObject {
|
|
|
|
pub struct IDMetadataCountObject {
|
|
|
|
id: i32,
|
|
|
|
pub id: i32,
|
|
|
|
metadata: Option<i32>,
|
|
|
|
pub metadata: Option<i32>,
|
|
|
|
count: Option<u32>,
|
|
|
|
pub count: Option<u32>,
|
|
|
|
}
|
|
|
|
}
|
|
|
|