pub trait PluginConfig<'de> {
// Required method
fn deserialize(config: &Value) -> StdResult<Self, ConfigError>
where Self: Sized;
}
Expand description
The trait used to deserialized plugin config input from the Policy File. The trait is applied to a plugin RawConfig struct and works in tandem with the derive_plugin_config procedural macro re-imported to this sdk crate via hipcheck_sdk_macros.