(json: &Value, type_name: &str, ctx: &mut C)
| 648 | } |
| 649 | |
| 650 | pub fn serialize<M, C>(json: &Value, type_name: &str, ctx: &mut C) -> String |
| 651 | where |
| 652 | C: TestDeserializeContext, |
| 653 | M: MzReflect, |
| 654 | { |
| 655 | let mut rti = ReflectedTypeInfo::default(); |
| 656 | M::add_to_reflected_type_info(&mut rti); |
| 657 | from_json(json, type_name, &rti, ctx) |
| 658 | } |
| 659 | |
| 660 | /// Converts serialized JSON to the syntax that [to_json] handles. |
| 661 | /// |
nothing calls this directly
no test coverage detected