I'm investigating a way to port a micro-service from Ruby to Rust. My framework of choice is Actix (but anyone else would work without issues). Now, I'm trying to understand how to create a POST method, that receive two JSON as input. Those two JSON, have two completely different structures and within the structure could have different objects (JSON object) to later be stored later in two PostgreSQL JSONB fields.
Any hints on how to structure the function and the related structs? I thought to receive it as Strings, but I am not sure its the right thing to do.