pub trait PluginConfigExt: Plugin {
// Provided method
fn parse_config<T>(&self, config: &Value) -> Result<T, PluginError>
where T: DeserializeOwned { ... }
}Provided Methods§
Sourcefn parse_config<T>(&self, config: &Value) -> Result<T, PluginError>where
T: DeserializeOwned,
fn parse_config<T>(&self, config: &Value) -> Result<T, PluginError>where
T: DeserializeOwned,
解析插件配置,这个只是方便调用,手动使用serde_json转换也可
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".