Function merino_suggest_traits::convert_config
source · [−]pub fn convert_config<T: DeserializeOwned>(
config: Value
) -> Result<T, SetupError>
Expand description
Convert a serde_json::Value
into an appropriate provider configuration object.
Errors
If the Value
passed does not conform to the expected schema of the config,
a SetupError::InvalidConfiguration
error will be returned.