| 158 | /// the actual device snapshot data. |
| 159 | #[derive(Clone, Default, Deserialize, Serialize)] |
| 160 | pub struct Snapshot { |
| 161 | /// The Snapshottable component snapshots. |
| 162 | pub snapshots: std::collections::BTreeMap<String, Snapshot>, |
| 163 | |
| 164 | /// The Snapshottable component's snapshot data. |
| 165 | /// A map of snapshot sections, indexed by the section ids. |
| 166 | pub snapshot_data: Option<SnapshotData>, |
| 167 | } |
| 168 | |
| 169 | impl Snapshot { |
| 170 | pub fn from_data(data: SnapshotData) -> Self { |
no outgoing calls
no test coverage detected