Pre-RFC: Associated structs, enums, traits On structs, enums, traits

You'd probably be interested in the structural records RFC. And here's another thread on the topic.