br-plugin 1.6.8

This is an Plugin
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use br_plugin::addon::{Addon, AddonTemp};
use br_plugin::model::{Model, ModelTemp};


pub struct {{plugin}} {}

impl Addon for {{plugin}} {
    fn name(&mut self) -> &'static str { "{{addon}}" }
    fn title(&mut self) -> &'static str {"{{title}}"}
    fn mode(&mut self) -> Vec<&'static str> { vec![] }
    fn model(&mut self, name: &str) -> Box<dyn Model> {
        match name {
            "{{addon}}" => Box::new(TestTest { addon: {{plugin}} {} }),
            _ => Box::new(ModelTemp { addon: AddonTemp {} })
        }
    }
}
pub mod {{addon}};