codegen icon indicating copy to clipboard operation
codegen copied to clipboard

Field visibility

Open LegNeato opened this issue 7 years ago • 1 comments

You cannot set field visibility currently.

I have added it in my branch @ https://github.com/LegNeato/codegen/tree/issue-3-and-4-field-documentation-annotation and will put up a PR when https://github.com/carllerche/codegen/pull/6 lands.

LegNeato avatar Apr 27 '18 06:04 LegNeato

I got around this by having the name of the field have the word pub in the field name, e.g.

s.field("pub num", "usize");

But yeah, +1 to having this be supported!

gorup avatar Jul 23 '19 15:07 gorup