Short answer is: You can't. Rust is not an object oriented language. It has no notion of "class" or "inheritance" built in.
Having said that, I bet there are those who could suggest achieving something akin to classes and inheritance in Rust. Albeit it in some verbose, clunky, fashion. As one can in languages like C even.
Better would be to reconsider if a class/inheritance based solution is necessary and hence how to do it in a more Rusty way.
More information on what the actual problem is would probably help.