Skip to main content

change_config_value

Function change_config_value 

Source
pub fn change_config_value(config_name: &str, config_value: &str)
Expand description

Changes the value of a configuration setting in the config file.

§Arguments

  • config_name - The name of the configuration setting to change.
  • config_value - The new value for the configuration setting.

§Example

change_config_value("server_host", "0.0.0.0");
change_config_value("server_port", "8080");