about summary refs log tree commit diff stats
path: root/crates/rocie-client/src/models/step.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rocie-client/src/models/step.rs')
-rw-r--r--crates/rocie-client/src/models/step.rs34
1 files changed, 34 insertions, 0 deletions
diff --git a/crates/rocie-client/src/models/step.rs b/crates/rocie-client/src/models/step.rs
new file mode 100644
index 0000000..4ee76f3
--- /dev/null
+++ b/crates/rocie-client/src/models/step.rs
@@ -0,0 +1,34 @@
+/*
+ * 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};
+
+/// Step : A step holding step [`Item`]s
+#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
+pub struct Step {
+    /// [`Item`]s inside
+    #[serde(rename = "items")]
+    pub items: Vec<models::Item>,
+    /// Step number  The step numbers start at 1 in each section and increase with non text step.
+    #[serde(rename = "number")]
+    pub number: u32,
+}
+
+impl Step {
+    /// A step holding step [`Item`]s
+    pub fn new(items: Vec<models::Item>, number: u32) -> Step {
+        Step {
+            items,
+            number,
+        }
+    }
+}
+