#[derive(Debug, Default, Clone, serde::Serialize)]
pub struct DslParam {
pub name: String,
pub ty: String,
pub comment: String,
pub is_option: bool,
}
impl DslParam {
pub fn rust_type(&self) -> String {
let ty = match self.ty.as_str() {
_ => self.ty.as_str(),
};
if self.is_option{
format!("Option<{}>", ty)
} else{
ty.to_string()
}
}
pub fn get_define_src() {}
}