Field is the syn syntax structure used to inspect a Rust field while traversing a parsed struct. Its properties include attributes, visibility, identifier, and type. section 4.4
Named struct fields appear as a Punctuated<Field, Token![,]> collection. Iterating over it yields each Field while ignoring the comma punctuation. section 4.4
Generating public fields
A procedural attribute macro matches a struct's named fields, reads each field's ident and ty, and emits quote! { pub #name: #ty } for the generated version.
