pub struct VariableCharacteristics<CustomDataType = NoCustomData> {
pub custom_data: Option<CustomDataType>,
pub data_type: DataEnum,
pub max_elements: Option<i64>,
pub max_limit: Option<f64>,
pub min_limit: Option<f64>,
pub supports_monitoring: bool,
pub unit: Option<String<16usize>>,
pub values_list: Option<String>,
}Expand description
Fixed read-only parameters of a variable.
Fields§
§custom_data: Option<CustomDataType>§data_type: DataEnum§max_elements: Option<i64>(2.1) Maximum number of elements from valuesList that are supported as attributeValue.
max_limit: Option<f64>Maximum possible value of this variable. When the datatype of this Variable is String, OptionList, SequenceList or MemberList, this field defines the maximum length of the (CSV) string.
min_limit: Option<f64>Minimum possible value of this variable.
supports_monitoring: boolFlag indicating if this variable supports monitoring.
unit: Option<String<16usize>>Unit of the variable. When the transmitted value has a unit, this field SHALL be included.
values_list: Option<String>Mandatory when dataType = OptionList, MemberList or SequenceList. In that case valuesList specifies the allowed values for the type.
The length of this field can be limited by DeviceDataCtrlr.ConfigurationValueSize.
-
OptionList: The (Actual) Variable value must be a single value from the reported (CSV) enumeration list.
-
MemberList: The (Actual) Variable value may be an (unordered) (sub-)set of the reported (CSV) valid values list.
-
SequenceList: The (Actual) Variable value may be an ordered (priority, etc) (sub-)set of the reported (CSV) valid values.
This is a comma separated list.
The Configuration Variable <<configkey-configuration-value-size,ConfigurationValueSize>> can be used to limit SetVariableData.attributeValue and VariableCharacteristics.valuesList. The max size of these values will always remain equal.
Trait Implementations§
Source§impl<CustomDataType: Clone> Clone for VariableCharacteristics<CustomDataType>
impl<CustomDataType: Clone> Clone for VariableCharacteristics<CustomDataType>
Source§fn clone(&self) -> VariableCharacteristics<CustomDataType>
fn clone(&self) -> VariableCharacteristics<CustomDataType>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<CustomDataType: Debug> Debug for VariableCharacteristics<CustomDataType>
impl<CustomDataType: Debug> Debug for VariableCharacteristics<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for VariableCharacteristics<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for VariableCharacteristics<CustomDataType>where
CustomDataType: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl<CustomDataType: PartialEq> PartialEq for VariableCharacteristics<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for VariableCharacteristics<CustomDataType>
Source§impl<CustomDataType> Serialize for VariableCharacteristics<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for VariableCharacteristics<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for VariableCharacteristics<CustomDataType>
Source§impl<CustomDataType> Validate for VariableCharacteristics<CustomDataType>
Available on crate features alloc and validate only.
impl<CustomDataType> Validate for VariableCharacteristics<CustomDataType>
alloc and validate only.