#schema #tree #field-name #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

#39 in #field-name

Download history 113/week @ 2024-07-22 173/week @ 2024-07-29 219/week @ 2024-08-05 242/week @ 2024-08-12 197/week @ 2024-08-19 192/week @ 2024-08-26 394/week @ 2024-09-02 200/week @ 2024-09-09 273/week @ 2024-09-16 529/week @ 2024-09-23 538/week @ 2024-09-30 517/week @ 2024-10-07 430/week @ 2024-10-14 158/week @ 2024-10-21 247/week @ 2024-10-28 341/week @ 2024-11-04

1,197 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