pub trait PluginConfigAPI: Send + Sync {
// Required methods
fn get(&self, key: &str) -> Option<Value>;
fn set(&self, key: &str, value: Value);
fn get_all(&self) -> HashMap<String, Value>;
fn has(&self, key: &str) -> bool;
fn delete(&self, key: &str);
}Expand description
插件配置 API
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".