summaryrefslogtreecommitdiff
path: root/src/template.rs
blob: 51bba8b6ca978daba59e0fb88392aee66f33e609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23


use std::collections::HashMap;
use crate::parameter::Parameter;

#[derive(Debug)]
pub struct Template {
	pub name: String,
	pub args: Vec<Parameter>,
	pub kwargs: HashMap<String, Parameter>
}


impl Template {
	
	pub fn empty(name: &str) -> Self {
		Self {
			name: name.to_string(),
			args: Vec::new(),
			kwargs: HashMap::new()
		}
	}
}