Beginning of frontend + recipe editing
[recipes.git] / common / src / ron_api.rs
diff --git a/common/src/ron_api.rs b/common/src/ron_api.rs
new file mode 100644 (file)
index 0000000..84b1619
--- /dev/null
@@ -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,
+}