diff options
Diffstat (limited to 'rif/src/recipe.rs')
-rw-r--r-- | rif/src/recipe.rs | 18 |
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, +} |