Initial import of csv-1.1.5.

Bug: 155309706
Change-Id: Id08b46b0989d3b869c4a014d10ea98193b7c3b32
diff --git a/examples/tutorial-read-serde-02.rs b/examples/tutorial-read-serde-02.rs
new file mode 100644
index 0000000..d9114fb
--- /dev/null
+++ b/examples/tutorial-read-serde-02.rs
@@ -0,0 +1,26 @@
+use std::error::Error;
+use std::io;
+use std::process;
+
+// This introduces a type alias so that we can conveniently reference our
+// record type.
+type Record = (String, String, Option<u64>, f64, f64);
+
+fn run() -> Result<(), Box<dyn Error>> {
+    let mut rdr = csv::Reader::from_reader(io::stdin());
+    // Instead of creating an iterator with the `records` method, we create
+    // an iterator with the `deserialize` method.
+    for result in rdr.deserialize() {
+        // We must tell Serde what type we want to deserialize into.
+        let record: Record = result?;
+        println!("{:?}", record);
+    }
+    Ok(())
+}
+
+fn main() {
+    if let Err(err) = run() {
+        println!("{}", err);
+        process::exit(1);
+    }
+}