Converting String to Symbol during struct construction

Julia doesn’t dispatch on keyword arguments, so this won’t work:

Keyword arguments behave quite differently from ordinary positional arguments. In particular, they do not participate in method dispatch. Methods are dispatched based only on positional arguments, with keyword arguments processed after the matching method is identified.

See the solution by @goerch above. Or you could just write a totally new function, e.g. mystruct(...) = MyStruct(...).