Replies: 2 comments 12 replies
-
Once you have a |
Beta Was this translation helpful? Give feedback.
12 replies
-
I'm working on a similarly bad format. What I do is pad the record just before deserialization: record.extend(core::iter::repeat("").take(headers.len() - record.len()));
let record = match record.deserialize(Some(headers)); |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have a disgusting csv format where someone thought it was clever to omit delimiters when the remaining columns of a row are all null.
So for example:
instead of :
What I would like to do is append as many
,
as are missing to theStringRecord
and then askcsv
to deserialize it into a struct:I know how to append to the
as_slice()
result fromStringRecord
. but how can I then ask this library to deserialize the&str
after I've appended the missing,
?Beta Was this translation helpful? Give feedback.
All reactions