use serde::Deserialize;
#[derive(Debug, Deserialize)]
struct Version {
name: String,
url: String,
sha256: String
}
let resp = reqwest::blocking::get("https://cache.ruby-lang.org/pub/ruby/index.txt")?;
let mut rdr = csv::ReaderBuilder::new()
.delimiter(b'\t')
.from_reader(resp);
for result in rdr.deserialize() {
let version: Version = result?;
println!("{:?}", version);
}