pub struct Mv {
pub mag: Option<AnalogueValue>,
pub q: Option<Quality>,
pub t: Option<Timestamp>,
pub units: Option<Unit>,
}
Expand description
Measured value (MV)
Fields§
§mag: Option<AnalogueValue>
Value of the magnitude based on a deadband calculation from the instantaneous value ‘instMag’. The value of ‘mag’ shall be updated to the current instantaneous value ‘instMag’ when the value has changed according to the configuration parameter ‘db’. If ‘db’=0, ‘mag’=‘instMag’.NOTE 1 This value is typically used to create reports for analogue values. Such a report sent “by exception” is not comparable to the transfer of sampled measured values as supported by the CDC SAV.NOTE 2 This ‘mag’ is not the same as ‘mag’ of the constructed attribute class ‘Vector’.
q: Option<Quality>
Quality of the values in ‘instMag’, ‘mag’, ‘range’.
t: Option<Timestamp>
Timestamp of the last refresh of the value in ‘mag’ or of the last change of the value in any of ‘range’ or ‘q’.
units: Option<Unit>
Unit for: ‘instMag’, ‘mag’, ‘subMag’, ‘rangeC’.
Trait Implementations§
Source§impl Message for Mv
impl Message for Mv
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.