How does pattern matching with structs work?

My bad, updated the example