BurntSushi / BurntSushi/rust-csv

Handle CSV files with "duplicate field" by reading the values in a vector

Open
#377 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2k
Forks
257
PR merge metrics
No merged PRs in 30d

Description

I've just encountered the same problem as was described in #353. I was wondering about a different solution:

Given a header with duplicate fields:

```
name,other,name'
```

I wonder if the values could be deserialized into a vector. Assuming this is the definition of the struct:

```rust
#[derive(Deserialize, Debug)]
struct Message {
name: Vec,
other: String,
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.