1 2 3 4 5 6 7 8 9 10 11 12 13 14
use df_plugin::{Model, models, Plugin}; pub struct {{plugin}} {} impl Plugin for {{plugin}} { fn title(&mut self) -> String { "{{title}}".to_string() } fn model(&mut self, name: &str) -> Box<dyn Model> { match name { _ => models(name) } } }