Can set device desired version
This commit is contained in:
@ -9,7 +9,7 @@ use std::collections::{HashMap, HashSet};
|
||||
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)]
|
||||
pub struct DeviceInfo {
|
||||
/// Device reference
|
||||
reference: String,
|
||||
pub reference: String,
|
||||
/// Device firmware / software version
|
||||
version: semver::Version,
|
||||
/// Maximum number of relay that the device can support
|
||||
@ -62,6 +62,9 @@ pub struct Device {
|
||||
///
|
||||
/// There cannot be more than [info.max_relays] relays
|
||||
pub relays: Vec<DeviceRelay>,
|
||||
/// Desired version, ie. the version of the software we would to seen run on the device
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub desired_version: Option<semver::Version>,
|
||||
}
|
||||
|
||||
/// Structure that contains information about the minimal expected execution
|
||||
|
Reference in New Issue
Block a user