We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bce8b14 commit 223bf18Copy full SHA for 223bf18
src/sensors/mod.rs
@@ -47,6 +47,8 @@ pub struct SensorMetadata {
47
pub location: Option<String>,
48
#[serde(skip_serializing_if = "Option::is_none")]
49
pub description: Option<String>,
50
+ #[serde(skip_serializing_if = "Option::is_none")]
51
+ pub lastchange: Option<u64>,
52
}
53
54
/// Common information describing any sensor which requires a specified location.
@@ -57,6 +59,8 @@ pub struct SensorMetadataWithLocation {
57
59
pub location: String,
58
60
61
62
63
64
65
66
/// Describes an error occurring when building a sensor from a `SensorTemplate`.
0 commit comments