pub struct MeasurementValue {
pub base: IOPoint,
pub measurement_value_source: Option<MridRef>,
pub sensor_accuracy: Option<f64>,
pub time_stamp: String,
}Expand description
The current state for a measurement. A state value is an instance of a measurement from a specific source. Measurements can be associated with many state values, each representing a different source for the measurement.
Fields§
§base: IOPoint§measurement_value_source: Option<MridRef>A reference to the type of source that updates the MeasurementValue, e.g. SCADA, CCLink, manual, etc. User conventions for the names of sources are contained in the introduction to IEC 61970-301.
sensor_accuracy: Option<f64>The limit, expressed as a percentage of the sensor maximum, that errors will not exceed when the sensor is used under reference conditions.
time_stamp: StringThe time when the value was last updated.
Implementations§
Source§impl MeasurementValue
impl MeasurementValue
pub fn from_block(b: &RdfBlock) -> Self
Trait Implementations§
Source§impl CimElement for MeasurementValue
impl CimElement for MeasurementValue
Source§impl Clone for MeasurementValue
impl Clone for MeasurementValue
Source§fn clone(&self) -> MeasurementValue
fn clone(&self) -> MeasurementValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MeasurementValue
impl Debug for MeasurementValue
Source§impl Default for MeasurementValue
impl Default for MeasurementValue
Source§fn default() -> MeasurementValue
fn default() -> MeasurementValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MeasurementValue
impl<'de> Deserialize<'de> for MeasurementValue
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
Auto Trait Implementations§
impl Freeze for MeasurementValue
impl RefUnwindSafe for MeasurementValue
impl Send for MeasurementValue
impl Sync for MeasurementValue
impl Unpin for MeasurementValue
impl UnsafeUnpin for MeasurementValue
impl UnwindSafe for MeasurementValue
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