use super::{Param, ParamType};
#[derive(Debug, Clone, PartialEq, Deserialize)]
pub struct Constructor {
pub inputs: Vec<Param>,
}
impl Constructor {
pub fn param_types(&self) -> Vec<ParamType> {
self.inputs.iter()
.map(|p| p.kind.clone())
.collect()
}
}