df_plugin/test/
mod.rs

1use crate::{Model, Plugin};
2use crate::test::test::TestTest;
3
4
5pub mod test;
6pub struct Test {}
7
8impl Plugin for Test {
9    fn title(&mut self) -> &'static str {"测试插件"}
10    fn model(&mut self, name: &str) -> Box<dyn Model> {
11        match name {
12            _ => Box::new(TestTest {})
13        }
14    }
15}