I am trying to figure out how to deserialize some json I have to deal with using serde. Can it be done with attributes? I have a structure that matches the contents, but the standard serialize has the structure name.
This is the JSON I want to load:
So it turns out I was misinterpreting the problem at the end of a long day.
As you indicated above it does what I wanted.
It wasn't that there isn't the UserStruct, it is that the data I am being passed has a higher level wrapper around it. A combination of misreading the error message and looking at the wrong debug output confused me.
So I just needed to handle the top level and it worked fine.
Thank you again for the help, and the helpful edit that made the posting much more readable. I format better next time.
thanks
johnt