You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to be able to document Unions directly from doc comments on the variant. Currently this does not work, and the documentation is extracted from the doc comment on the struct contained in the variant instead.
This behaviour does not seem consistent with what happens inside Objects, where doc comments on each field are used as the documentation in the generated api.
Feature example
#[derive(Union)]enumMyEnum{/// variant A doc comment <-- this is currently ignoredA(Struct_A),/// variant B doc comment <-- this is also currently ignoredB(Struct_B),}
The text was updated successfully, but these errors were encountered:
Description of the feature
It would be nice to be able to document
Union
s directly from doc comments on the variant. Currently this does not work, and the documentation is extracted from the doc comment on the struct contained in the variant instead.This behaviour does not seem consistent with what happens inside
Object
s, where doc comments on each field are used as the documentation in the generated api.Feature example
The text was updated successfully, but these errors were encountered: