An equivalence of the dot syntax for enums of Swift in Rust?

Here's another thread: