pub struct DeviceModelEntry {
pub component: Option<&'static str>,
pub variable: &'static str,
pub attributes: Option<&'static str>,
pub instance: Option<&'static str>,
pub required: Option<&'static str>,
pub data_type: Option<&'static str>,
pub unit: Option<&'static str>,
}Expand description
One (component, variable) pair of the standardized device model.
The schemas describe the shape of GetVariables/SetVariables
but not which pairs are meaningful; the spec states those in its
device model appendix.
Fields§
§component: Option<&'static str>None when the variable applies to any component rather
than a named one (the spec’s <generic> rows).
variable: &'static str§attributes: Option<&'static str>The VariableAttribute.type values this row is about, where
the spec’s table narrowed them – e.g. Min/MaxSet for a row
describing only a variable’s MinSet and MaxSet
attributes. None means the row is about the variable
generally.
instance: Option<&'static str>The Variable.instance this row describes, where the spec
names one.
required: Option<&'static str>Whether support is required: yes, no, or V2X (required
only for V2X-capable stations). Kept as the spec’s own text
rather than a bool, since it is not a two-state field.
data_type: Option<&'static str>§unit: Option<&'static str>Trait Implementations§
Source§impl Clone for DeviceModelEntry
impl Clone for DeviceModelEntry
Source§fn clone(&self) -> DeviceModelEntry
fn clone(&self) -> DeviceModelEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more