#reflect #reflection #type #schema #tree

reflection

reflects of type's fields' names and their type names in a hierarchical tree

4 releases

Uses old Rust 2015

0.1.3 Sep 26, 2018
0.1.2 Aug 16, 2018
0.1.1 Jul 2, 2018
0.1.0 Jun 9, 2018

#220 in Value formatting

Download history 38/week @ 2023-02-10 50/week @ 2023-02-17 44/week @ 2023-02-24 39/week @ 2023-03-03 30/week @ 2023-03-10 27/week @ 2023-03-17 27/week @ 2023-03-24 25/week @ 2023-03-31 36/week @ 2023-04-07 39/week @ 2023-04-14 30/week @ 2023-04-21 33/week @ 2023-04-28 46/week @ 2023-05-05 46/week @ 2023-05-12 24/week @ 2023-05-19 36/week @ 2023-05-26

157 downloads per month
Used in 2 crates

MIT license

20KB
372 lines

The reflection crate currently provides reflection of field names and type names.

Quickstart

Licensed under MIT.


lib.rs:

This library produces type schema information, including field names and type names in hierarchical tree structure, which reflects the type definitions.

To avoid circular type definition, the pointer types( raw/smart pointers, references etc ) will be treated as terminal types, unless using expand() to get the referenced type's schemata().

Example

See fn serde_issue_345() for generating pretty print format from schemata().

Dependencies

~230KB