field_names

proc-macro for accessing struct field names at runtime (by TedDriggs)

Field_names Alternatives

Similar projects and alternatives to field_names

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better field_names alternative or higher similarity.

field_names reviews and mentions

Posts with mentions or reviews of field_names. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-03-01.
  • Trick for keeping fields of two structs in sync
    1 project | /r/rust | 2 Mar 2022
    PS: The rename protection here requires that the field types are completely identical between the two. If you need to do Into or AsRef conversions, this will still catch field addition and removal, but you may need to add a unit-test that uses something like field_names.
  • What's everyone working on this week (9/2021)?
    11 projects | /r/rust | 1 Mar 2021
    I've added a test/example to the field_names showing how it can be used to keep two structs' fields in sync (source code). This solved a problem I was having where edits to one struct risked breaking deserialization if the same change wasn't applied to a second struct.

Stats

Basic field_names repo stats
2
37
0.0
over 2 years ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com