use crate::plugin::{{plugin}}::{{model_a}}::{{model}}; use json::{JsonValue, object}; use br_plugin::Response; use br_plugin::addon::Addon; use br_plugin::action::Action; use crate::plugin::addon; pub struct {{action}} { pub model: {{model}}, } impl Action for {{action}} { fn author(&mut self) -> &'static str { return "";} fn title(&mut self) -> &'static str { "{{title}}" } fn api(&mut self) -> &'static str { "{{api}}" } fn icon(&mut self) -> &'static str { "settings" } fn mode(&mut self) -> Vec<&'static str> {vec![]} fn index(&mut self, header: JsonValue, _request: JsonValue) -> Response { return addon("main.main.get_param").run(header.clone(), object! { "addon":self.model.addon.name(), "model":self.model.name() }); } }