You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a similiar ticket for rust-csv, it would be nice to have a csv deserializer that can take advantage of csv headers to match up with struct members.
The text was updated successfully, but these errors were encountered:
First serde is not implemented (only rustc_serialize), because serde was slow and was breaking too much for my taste (when I looked into it).
Anyway, I'm not certain I understand your issue.
Does it mean storing the headers to know the field names and then ignoring the columns that are not affected to a field?
Can you provide a csv and what you're expecting exactly?
Which I'd then like to deserialize into a struct using (serde would be nice) like...
structStop{stop_id:String,stop_name:String,trip_id:String}fndeserialize_stops(...) -> Vec<Stop>{// some code here to deserialize each csv row directly to a Stop}
Notably the ordering of columns shouldn't matter in determining which struct fields to use for each csv column, only the csv column header should be used to match in this case.
I created a similiar ticket for rust-csv, it would be nice to have a csv deserializer that can take advantage of csv headers to match up with struct members.
The text was updated successfully, but these errors were encountered: