Serializing/Deserializing multiple data structures into a single CSV file #369
Unanswered
ThomasAlban
asked this question in
Q&A
Replies: 1 comment
-
You could try defining a parent struct with each of your structs as fields and apply Otherwise, I would define a separate "wire" type that matches your CSV record format and use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to be able to serialize 2 data structures: The first is a
Transform
struct, and the second is a generic structT: Serialize + Deserialize
. Depending on some settings I only want to serialize certain parts of theTransform
struct, so e.g. some may not serialize the scale/rotation. These settings are determined by the typeT
.So, when serializing these structs:
I want to end up with a csv that looks like this:
And similarly, I want to be able to deserialize that csv and go back to the structs above. I've done some research but can't seem to find a way of doing this.
Any help appreciated!
Beta Was this translation helpful? Give feedback.
All reactions