#type-schema #field-name #tree #type-name #reflect #hierarchical #reflects

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

#12 in #field-name

Download history 12/week @ 2023-11-20 15/week @ 2023-11-27 17/week @ 2023-12-04 74/week @ 2023-12-11 20/week @ 2023-12-18 20/week @ 2023-12-25 31/week @ 2024-01-08 13/week @ 2024-01-15 116/week @ 2024-01-22 96/week @ 2024-01-29 125/week @ 2024-02-05 146/week @ 2024-02-12 183/week @ 2024-02-19 201/week @ 2024-02-26 233/week @ 2024-03-04

768 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