Skip to main content

config

Function config 

Source
pub fn config<T: DeserializeOwned>(json: &str) -> Result<T, String>
Expand description

Decodes the JSON configuration init, reload and work_init receive.

The host passes {} when the plugin has no configuration, so mark optional fields with #[serde(default)].