Adds pretty_output
This commit is contained in:
@@ -5,7 +5,6 @@ extern crate dotenv;
|
||||
pub mod schema;
|
||||
pub mod models;
|
||||
|
||||
mod recipe;
|
||||
mod importer;
|
||||
|
||||
use diesel::prelude::*;
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
|
||||
/// Tag associated with ingredients
|
||||
#[allow(dead_code)]
|
||||
pub enum FoodTag {
|
||||
Viande,
|
||||
Poisson,
|
||||
Legume,
|
||||
}
|
||||
|
||||
/// Categories for recipe, to organize them for navigation and planning
|
||||
#[allow(dead_code)]
|
||||
pub enum RecipeCategory {
|
||||
PetitDejeuner,
|
||||
Entree,
|
||||
Plat,
|
||||
Dessert,
|
||||
}
|
||||
|
||||
/// A collection of tags, to be improved
|
||||
type FoodTags = Vec<FoodTag>;
|
||||
|
||||
/// Nutritionnal values per 100g, to be improved
|
||||
#[derive(Default)]
|
||||
struct NutritionnalValues;
|
||||
|
||||
/// An individual ingredient
|
||||
#[derive(Default)]
|
||||
#[allow(dead_code)]
|
||||
pub struct Ingredient {
|
||||
/// All known alias of a same ingredient
|
||||
alias: Vec<String>,
|
||||
/// Nutrionnal values per 100g
|
||||
nutrition: NutritionnalValues,
|
||||
/// Associated tags to constraint planning
|
||||
tags: FoodTags,
|
||||
}
|
||||
Reference in New Issue
Block a user