MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / serialize

Function serialize

src/lowertest/src/lib.rs:650–658  ·  view source on GitHub ↗
(json: &Value, type_name: &str, ctx: &mut C)

Source from the content-addressed store, hash-verified

648}
649
650pub fn serialize<M, C>(json: &Value, type_name: &str, ctx: &mut C) -> String
651where
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///

Callers

nothing calls this directly

Calls 1

from_jsonFunction · 0.70

Tested by

no test coverage detected