pub struct DataField {
pub parameter_id: u32,
pub length: u16,
pub data_type: DataType,
pub unit: u16,
pub step_no: Option<u16>,
pub data_value: String,
}
Fields§
§parameter_id: u32
Parameter id (PID). 5 bytes, UI. The available PIDs may vary depending on the system type.
length: u16
Length. 3 bytes, UI. Length of data value.
data_type: DataType
Data Type. 2 bytes, UI. Data type of the data value.
unit: u16
Unit. 3 bytes, UI. Unit of the data.
step_no: Option<u16>
Step no. 4 bytes, UI. The step number for the result variable. Sent as 0000 if not relevant.
data_value: String
The data value.
Trait Implementations§
impl Eq for DataField
impl StructuralPartialEq for DataField
Auto Trait Implementations§
impl Freeze for DataField
impl RefUnwindSafe for DataField
impl Send for DataField
impl Sync for DataField
impl Unpin for DataField
impl UnwindSafe for DataField
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