Deserialization of custom module resources

For now, the client cli is hard coded to only deserialize and show the accountResource, I am think about how should we deserialize custom resources. As I know, eos’s sulotion is generate an extra xxx.abi file which is a json file to denote the schema of the table in smart contract. I wonder what the libra’s solution will be.

I write a simple deserializer which take a json file as abi information and deserialize custom resources:
https://github.com/EOSLaoMao/libra/blob/feature/resource-deserializer/abi-deserializer/src/lib.rs