Skip to main content

load_config_json

Function load_config_json 

Source
pub(crate) fn load_config_json(
    path: &str,
    cfg: &mut Config,
    merge: bool,
) -> Result<(), String>
Expand description

Loads a Config from a protobuf-JSON file: replacing cfg, or with merge overlaying only the fields the tag supports and the file speaks for (ConfigShape::for_file, so a stated zero is copied).