I have a naive question about documentation of field attributes.
I have a struct like this where I derived some modbus-related trait which uses field attributes. (Although, the modbus stuff is not that relevant for the question.)
This will be shown in the "Fields" section of the documentation, under power. If power isn't pub, it won't show up anywhere.
Another good place to put a doc comment is in the generated implementation of MyModbus, although these have much lower visibility in the documentation than struct fields.
I don't think there's any way to change the struct representation in the documentation, besides changing the struct itself. Macro attributes don't (necessarily) change the struct, so they aren't of any concern to the documentation, which mostly only cares about the API.