field-visibility
Attribute to specify the visibility of all fields in a Rust struct.
Usage
Examples
The argument is the visibility mode (i.e. pub or pub(crate)).
To set all fields in the struct to public:
use visibility;
// Or `pub(crate)`, etc.
This expands to:
use visibility;
When using this attribute, the visibility of individual fields can be set.
use visibility;
The expansion of this is: