rustdoc: inherited vis. for struct variant fields

Teach rustdoc that struct variant fields have inherited visibility.

Fix #19048