aboutsummaryrefslogtreecommitdiff
path: root/rif/src/recipe.rs
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2020-08-20 21:41:45 +0200
committerKatharina Fey <kookie@spacekookie.de>2020-08-20 21:41:45 +0200
commitb4b9515fd969cb6445c8a93b7eb1ec8ebe529949 (patch)
treecacb2255f9dfba2f72738ffeab28e820f0422090 /rif/src/recipe.rs
parentf76b3008a69e376fac06a1c383936531748e654a (diff)
rif: adding Recipes and Metadata
Diffstat (limited to 'rif/src/recipe.rs')
-rw-r--r--rif/src/recipe.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/rif/src/recipe.rs b/rif/src/recipe.rs
new file mode 100644
index 0000000..21b7912
--- /dev/null
+++ b/rif/src/recipe.rs
@@ -0,0 +1,18 @@
+use crate::{Ingredient, Schema, Thread, Workstep};
+use std::collections::BTreeSet;
+
+/// A recipe with instructions to execute
+pub struct Recipe<I, W>
+where
+ I: Ingredient,
+ W: Workstep,
+{
+ schema: Schema<I, W>,
+ metadata: Metadata,
+ threads: BTreeSet<Thread>,
+}
+
+pub struct Metadata {
+ pub name: String,
+ pub version: String,
+}