config_value_file::field

Function config_value_from_json_value

Source
pub fn config_value_from_json_value(
    val: &Value,
    value_type: &ConfigValueType,
) -> Result<ConfigValue, FieldError>
Expand description

Returns a FIDL value to encode in the file for the provided JSON value, if and only if the value matches the type from the declaration.