We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, thank you for this crate, I use it a lot. (a lot, and out of just deserializing csv actually).
Thank you for taking the time to answer.
csv
1.2.2
I wonder if it is possible to deserialize an empty vec.
Taking directly from the documentation here
#[test] fn example() -> Result<(), Box<dyn Error>> { let data = "foo"; let mut rdr = ReaderBuilder::new() .has_headers(false) .from_reader(data.as_bytes()); let mut iter = rdr.deserialize(); if let Some(result) = iter.next() { let record: Row = result?; assert_eq!( record, Row { label: "foo".to_string(), values: vec![], } ); Ok(()) } }
I edited a little bit your example in the Rules section, because I am working on a case where the list can be empty.
I would like to see a
Row { label: "foo".to_string(), values: vec![], }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello, thank you for this crate, I use it a lot. (a lot, and out of just deserializing csv actually).
Thank you for taking the time to answer.
What version of the
csv
crate are you using?1.2.2
Briefly describe the question, bug or feature request.
I wonder if it is possible to deserialize an empty vec.
Include a complete program demonstrating a problem.
Taking directly from the documentation here
What is the observed behavior of the code above?
I edited a little bit your example in the Rules section, because I am working on a case where the list can be empty.
What is the expected or desired behavior of the code above?
I would like to see a
The text was updated successfully, but these errors were encountered: