zap_model/
lib.rs

1#[macro_use]
2extern crate pest;
3#[macro_use]
4extern crate pest_derive;
5
6use std::collections::HashMap;
7
8pub mod plan;
9pub mod task;
10
11/**
12 * An ExecutableTask is a light container over a Task execpt with user-provided information and is
13 * therefore ready for execution
14 */
15#[derive(Clone, Debug)]
16pub struct ExecutableTask {
17    pub task: task::Task,
18    pub parameters: HashMap<String, String>,
19}
20
21impl ExecutableTask {
22    pub fn new(task: task::Task, parameters: HashMap<String, String>) -> Self {
23        Self { task, parameters }
24    }
25}