I am trying to implement a structure where the user’s input will call a 3rd party API and respond with a structured container wrapped around the 3rd party API’s output. This was my initial idea:
But it doesn’t work. I’m thinking that I need to translate the
T coming out of the called “actions” into a generic structure, say a JSON and use that as the type. Is there a more idiomatic way of doing something like this in Rust?