Skip to main content

merge_configs

Function merge_configs 

Source
pub fn merge_configs(
    base: &ProcessingConfig,
    overlay_json: &str,
) -> Result<ProcessingConfig, EdgePdfError>
Expand description

Merge two configs: values present in overlay override those in base.

This works by serializing both to JSON, merging the JSON objects, and deserializing back. Fields in overlay that are null are skipped.