kovi 0.13.0

A Milky & OneBot V11 bot plugin framework
Documentation
use crate::plugin::Plugin;

#[derive(Clone, Default)]
pub struct PluginSet {
    pub set: Vec<Plugin>,
}

impl PluginSet {
    pub fn new() -> Self {
        Self { set: Vec::new() }
    }

    pub fn with(mut self, plugin: Plugin) -> Self {
        self.set.push(plugin);
        self
    }

    pub fn push(&mut self, plugin: Plugin) {
        self.set.push(plugin);
    }
}