Skip to main content

deserialize_plugin_options

Function deserialize_plugin_options 

Source
fn deserialize_plugin_options<'de, D>(
    deserializer: D,
) -> Result<Vec<PluginOptions>, D::Error>
where D: Deserializer<'de>,
Expand description

A serde deserialize_with helper that parses the plugins field leniently.

It delegates to the plugin crate’s deserializer (PluginOptionsDeserializerImpl), which knows the recognized variants: unknown options are dropped while malformed known options still error. Keeping the variant-aware logic in the plugins crate avoids duplicating it and avoids introducing a new symbol on the replaceable plugins crate.