I have a trait MyTrait of which all implementations could implement fmt::Debug.
I have a struct MyStruct that contains a Vec<Rc<dyn MyTrait>>.
How do I implement fmt::Debug for MyStruct?
My first idea was to just implement Debug for MyStruct manually but that seems very wrong, considering that only the implementation of Debug of the MyTrait objects could vary.
Logically I should be able to require MyTrait to "include" (in Java terms that would be interface inheritance) Debug and then simply derive Debug for MyStruct automatically. But how would I achieve this? I haven't found anything to that effect in the docs.