Conditional Options in Structs like 'Button Style'

Imagine the ‘Draw as’ dropdown in the Button Style Struct. Depending on what the user has selected it changes some of the option available. For example the ‘Draw as’ Box option gives a Margin while Image gives Tiling. How can I realize that kind of behaviour on a custom struct?