rustdoc: inherited vis. for struct variant fields

Teach rustdoc that struct variant fields have inherited visibility.

Fix #19048
auto merge of #19349 : tomjakubowski/rust/rustdoc-struct-variant-vis, r=sfackler

Teach rustdoc that struct variant fields have inherited visibility.

Fix #19048