aboutsummaryrefslogtreecommitdiffstats
path: root/crates/rocie-client/src/models/recipe.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--crates/rocie-client/src/models/recipe.rs33
1 files changed, 33 insertions, 0 deletions
diff --git a/crates/rocie-client/src/models/recipe.rs b/crates/rocie-client/src/models/recipe.rs
new file mode 100644
index 0000000..81cb6bd
--- /dev/null
+++ b/crates/rocie-client/src/models/recipe.rs
@@ -0,0 +1,33 @@
+/*
+ * rocie-server
+ *
+ * An enterprise grocery management system - server
+ *
+ * The version of the OpenAPI document: 0.1.0
+ * Contact: benedikt.peetz@b-peetz.de
+ * Generated by: https://openapi-generator.tech
+ */
+
+use crate::models;
+use serde::{Deserialize, Serialize};
+
+#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
+pub struct Recipe {
+ #[serde(rename = "content")]
+ pub content: String,
+ #[serde(rename = "id")]
+ pub id: models::RecipeId,
+ #[serde(rename = "path")]
+ pub path: String,
+}
+
+impl Recipe {
+ pub fn new(content: String, id: models::RecipeId, path: String) -> Recipe {
+ Recipe {
+ content,
+ id,
+ path,
+ }
+ }
+}
+