1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// SPDX-License-Identifier: MIT
//
// Copyright 2016-2026, Johann Tuffe.
//! This example demonstrates the simplest way to deserialize a spreadsheet row.
//! An anonymous tuple is read one row at a time using [`Range::deserialize`].
//!
//! This is the starting point for the deserialization examples. The first row
//! of the range is consumed as a header and the iterator yields the remaining
//! rows. Each row is deserialized into the tuple type inferred from the call
//! site, with columns matched positionally.
//!
//! The sample Excel file `temperature.xlsx` contains a single sheet named
//! "Sheet1" with the following data:
//!
//! ```text
//! ____________________________________________
//! | || | |
//! | || A | B |
//! |_________||________________|________________|
//! | 1 || label | value |
//! |_________||________________|________________|
//! | 2 || celsius | 22.2222 |
//! |_________||________________|________________|
//! | 3 || fahrenheit | 72 |
//! |_________||________________|________________|
//! |_ _________________________________|
//! \ Sheet1 /
//! ------
//! ```
//!
//! Next: `deserialize_struct` — deserializing all rows into a named struct
//! without depending on column order.
use ;