Fix field visibility

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/6/head
trivernis 3 years ago
parent 8c7e1c81fc
commit 225be978c2
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

3
.gitignore vendored

@ -1,3 +1,4 @@
/target
Cargo.lock
.idea
.idea
jtd-codegen

@ -18,3 +18,4 @@ serde = "1.0.133"
include_dir = "0.7.2"
itertools = "0.10.3"
lazy_static = "1.4.0"
schemafy = "0.6.0"

@ -1,5 +1,5 @@
use std::collections::HashMap;
#[allow(unused)]
#[derive(Deserialize, Debug, Clone)]
#[serde(rename_all(deserialize = "camelCase", serialize = "snake_case"))]
pub(crate) struct Datapaths {

@ -35,9 +35,9 @@ pub enum BoundingBox {
#[derive(Deserialize, Debug, Clone)]
#[serde(rename_all(deserialize = "camelCase", serialize = "snake_case"))]
pub struct Variation {
metadata: u32,
display_name: String,
description: Option<String>,
pub metadata: u32,
pub display_name: String,
pub description: Option<String>,
}
#[derive(Deserialize, Debug, Clone)]

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

Loading…
Cancel
Save