How to instantiate a struct based on string value in rust?

I'm new to rust- is there a way to instantiate a struct whose type is determined by the value of a string, i.e. from a config file? I would like to avoid a switch/case-like pattern where I have to match the string value with the appropriate struct type manually.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum