Function mz_lowertest::to_json_fields
source ยท pub(crate) fn to_json_fields<I, C>(
debug_name: &str,
stream_iter: &mut I,
f_names: Vec<&'static str>,
f_types: Vec<&'static str>,
rti: &ReflectedTypeInfo,
ctx: &mut C,
) -> Result<String, String>
Expand description
Converts the spec for fields of an enum/struct into deserializable JSON.
f_names
contains the names of the fields. If the fields are unnamed,
f_names
is empty.
f_types
contains the types of the fields.