Hey everyone! I'm looking for the rust idiomatic way to force a string variable to be included in a list of strings. I can't seem to make it work with enums, and I haven't found a rusty elegant way to do it:)
I come from a TS background, I'm a bit lost:
Do you know how to write this in Rust ?
`type myString = 'Option1' | 'Option2' | 'Option3'`
Thanks a lots