Skip to main content

save_gateway_setting

Function save_gateway_setting 

Source
pub fn save_gateway_setting(
    path: &Path,
    key: &str,
    value: &str,
) -> Result<(), String>
Expand description

Record key under [gateway] in the user config at path, creating the file if needed. A file with no [gateway] table gets one at its end and is otherwise kept byte for byte; one that has it is rewritten from its parsed form.