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