#schema #tree #type

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

#290 in #schema

Download history 364/week @ 2024-12-07 343/week @ 2024-12-14 85/week @ 2024-12-21 52/week @ 2024-12-28 197/week @ 2025-01-04 271/week @ 2025-01-11 259/week @ 2025-01-18 157/week @ 2025-01-25 75/week @ 2025-02-01 86/week @ 2025-02-08 74/week @ 2025-02-15 52/week @ 2025-02-22 34/week @ 2025-03-01 41/week @ 2025-03-08 56/week @ 2025-03-15 25/week @ 2025-03-22

164 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

~235KB