Beginning of frontend + recipe editing

(it's a mess)
This commit is contained in:
Greg Burri 2022-12-13 21:01:18 +01:00
parent 642dd8a80c
commit cbe276fc06
16 changed files with 203 additions and 63 deletions

View file

@ -6,4 +6,7 @@ edition = "2021"
[dependencies]
regex = "1"
lazy_static = "1"
lazy_static = "1"
ron = "0.8"
serde = {version = "1.0", features = ["derive"]}

View file

@ -1 +1,2 @@
pub mod utils;
pub mod utils;
pub mod ron_api;

14
common/src/ron_api.rs Normal file
View file

@ -0,0 +1,14 @@
use ron::de::from_reader;
use serde::Deserialize;
#[derive(Deserialize, Clone)]
pub struct SetRecipeTitle {
pub recipe_id: i64,
pub title: String,
}
#[derive(Deserialize, Clone)]
pub struct SetRecipeDescription {
pub recipe_id: i64,
pub description: String,
}