Im using sqlx and im creating a DB struct that will have functions for access the database. Im using the sqlx::query! macro and in the documentation there it says:
The output type is an anonymous record
so my wrapper function needs to return that too. Only I cant find how to do it. In Go you have the interface{} object which is the base object of all objects and then you can cast that. How do I approach this in Rust?
I tried using dyn Any, without really knowing what im doing there, and it says "doesnt have size known at compile time", which it wont. So is there a way to return a list of any object of unknown size?