Expand description
Utilities for testing lower layers of the Materialize stack.
See [README.md].
Structs§
- Generic
Test 🔒Deserialize Context - Default
TestDeserializeContext
. - Reflected
Type Info - Info that must be combined with a spec to form deserializable JSON.
Traits§
- MzReflect
- For
to_json
to create deserializable JSON for an instance of an type, the type must derive this trait. - Test
Deserialize Context - A trait for extending and/or overriding the default test case syntax.
Functions§
- deserialize
- Deserialize the next
TokenTree
into aD
object. - deserialize_
generic - Simpler interface for deserialize when no syntax overrides or extensions are needed.
- deserialize_
optional - If the
stream_iter
is not empty, deserialize the nextTokenTree
into aD
. - deserialize_
optional_ generic - Simpler interface for deserialize_optional when no syntax overrides or extensions are needed.
- find_
next_ 🔒type_ in_ tuple - from_
json - Converts serialized JSON to the syntax that to_json handles.
- from_
json_ 🔒fields - normalize_
type_ 🔒name - parse_
as_ 🔒enum_ or_ struct - Converts stream into JSON if
type_name
refers to an enum or struct - parse_
as_ 🔒enum_ or_ struct_ inner - parse_
as_ 🔒tuple - Converts all
TokenTree
s into JSON. - parse_
as_ 🔒vec - Converts all
TokenTree
s into JSON deserializable totype_name
. - serialize
- serialize_
generic - Simpler interface for serialize when no syntax overrides or extensions are needed.
- to_json
- Converts the next part of the stream into JSON deserializable into an object
of type
type_name
. - to_
json_ 🔒fields - Converts the spec for fields of an enum/struct into deserializable JSON.
- to_
json_ 🔒generic_ enum - Converts the spec of an enum into deserializable JSON
- tokenize
- Converts
s
into a proc_macro2::TokenStream - unquote
- Changes
"\"foo\""
to"foo"
Derive Macros§
- MzReflect
- Macro generating an implementation for the trait MzReflect