Make way to get values.
This commit is contained in:
1 parent
f40b641518
commit
5f5e9c3b8a
1 file changed
+4
@@ -85,6 +85,10 @@ impl DiagnosticStatus {
|
||||
self.hardware_id.clone()
|
||||
}
|
||||
|
||||
pub fn values(&self) -> BTreeMap<String, String> {
|
||||
self.values.clone()
|
||||
}
|
||||
|
||||
pub fn keys(&self) -> Vec<String> {
|
||||
self.values.keys().cloned().collect()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user