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