pub struct VariableCharacteristics {
pub custom_data: Option<CustomData>,
pub unit: Option<String>,
pub data_type: DataEnum,
pub min_limit: Option<f64>,
pub max_limit: Option<f64>,
pub values_list: Option<String>,
pub supports_monitoring: bool,
}Expand description
Fixed read-only parameters of a variable.
Fields§
§custom_data: Option<CustomData>§unit: Option<String>Unit of the variable. When the transmitted value has a unit, this field SHALL be included.
data_type: DataEnum§min_limit: Option<f64>Minimum possible value of this variable.
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.
values_list: Option<String>Allowed values when variable is Option/Member/SequenceList.
- 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.valueList. The max size of these values will always remain equal.
supports_monitoring: boolFlag indicating if this variable supports monitoring.
Trait Implementations§
Source§impl Clone for VariableCharacteristics
impl Clone for VariableCharacteristics
Source§impl Debug for VariableCharacteristics
impl Debug for VariableCharacteristics
Source§impl<'de> Deserialize<'de> for VariableCharacteristics
impl<'de> Deserialize<'de> for VariableCharacteristics
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VariableCharacteristics
impl PartialEq for VariableCharacteristics
Source§impl Serialize for VariableCharacteristics
impl Serialize for VariableCharacteristics
impl StructuralPartialEq for VariableCharacteristics
Auto Trait Implementations§
impl Freeze for VariableCharacteristics
impl RefUnwindSafe for VariableCharacteristics
impl Send for VariableCharacteristics
impl Sync for VariableCharacteristics
impl Unpin for VariableCharacteristics
impl UnsafeUnpin for VariableCharacteristics
impl UnwindSafe for VariableCharacteristics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more