pub fn load_from_json(json_str: &str) -> Result<ServiceConfig, Box<dyn Error>>Expand description
Loads configuration from a JSON string.
This function is useful for programmatic configuration or when loading from external sources (e.g., environment variables, API responses).
§Arguments
json_str- A JSON string containing the configuration
§Returns
A ServiceConfig ready to use, or an error if parsing fails or required fields are missing.