I am playing around with sending structs (serialized over to json), over a tcp connection, unfortunately the struct type is lost, and chaining a bunch of from_slice for various different structs wont work if the fields of two structs are the same, which leads to me naming the fields weirdly and etc, is there any library which just tags it for me?
serde enum representations suggests that if the structures you are dealing w/ are variants of an enum, using an external tagging strategy (the default) may solve your problem.
alternatively you may find serde-with::with_prefix helpful when renaming fields --unless this is what you're already using/doing.
I heard about typetag, I will see if it fits with my use case, i will also look into enum representations.