#schema #tree #reflection #type #field-name

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

#9 in #reflect

Download history 192/week @ 2024-11-17 188/week @ 2024-11-24 230/week @ 2024-12-01 402/week @ 2024-12-08 306/week @ 2024-12-15 81/week @ 2024-12-22 50/week @ 2024-12-29 214/week @ 2025-01-05 253/week @ 2025-01-12 286/week @ 2025-01-19 130/week @ 2025-01-26 87/week @ 2025-02-02 93/week @ 2025-02-09 58/week @ 2025-02-16 52/week @ 2025-02-23 26/week @ 2025-03-02

244 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