Hi,
I am trying to write CSV serializer within a method. But faced with the following error. Is it possible to write do something like following ?
pub fn foo() -> Result<bool, io::Error> {
#[derive(Deserialize)]
struct t2g_pair {
transcript_name: String,
gene_name: String,
};
let mut rdr = csv::ReaderBuilder::new()
.has_headers(false)
.delimiter(b'\t')
.from_reader(t2g_file.unwrap());
.
.
.
}
Currently facing the following error
error: cannot find derive macro `Deserialize` in this scope