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

1
.gitignore vendored

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

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

@ -1,5 +1,5 @@
use std::collections::HashMap; use std::collections::HashMap;
#[allow(unused)]
#[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(crate) struct Datapaths { pub(crate) struct Datapaths {

@ -35,9 +35,9 @@ pub enum BoundingBox {
#[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 Variation { pub struct Variation {
metadata: u32, pub metadata: u32,
display_name: String, pub display_name: String,
description: Option<String>, pub description: Option<String>,
} }
#[derive(Deserialize, Debug, Clone)] #[derive(Deserialize, Debug, Clone)]

@ -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>,
} }

Loading…
Cancel
Save