Skip to main content

set_plugin_version

Function set_plugin_version 

Source
pub fn set_plugin_version(
    doc: &mut DocumentMut,
    name: &str,
    new_version: &str,
) -> Result<(), String>
Expand description

Pure TOML helper: locate the [[plugin]] table whose name equals name, then set its version field to new_version. Returns Err on missing/duplicate match or on structural anomalies in the plugin key.