pub struct MeasurandDefinition {
pub measurand_id: String,
pub name: String,
pub description: String,
pub base_quantity: String,
pub direction: i32,
pub phase_ref: i32,
pub aggregation: i32,
pub location: i32,
pub accumulation: i32,
pub canonical_unit: String,
pub expected_value_type: Option<ValueType>,
}Expand description
§9.2 / §22 A named measurand definition (typically from a stdlib package).
Fields§
§measurand_id: String§name: String§description: String§base_quantity: String§direction: i32§phase_ref: i32§aggregation: i32§location: i32§accumulation: i32§canonical_unit: String§expected_value_type: Option<ValueType>Implementations§
Source§impl MeasurandDefinition
impl MeasurandDefinition
Sourcepub fn direction(&self) -> Direction
pub fn direction(&self) -> Direction
Returns the enum value of direction, or the default if the field is set to an invalid enum value.
Sourcepub fn set_direction(&mut self, value: Direction)
pub fn set_direction(&mut self, value: Direction)
Sets direction to the provided enum value.
Sourcepub fn phase_ref(&self) -> PhaseRef
pub fn phase_ref(&self) -> PhaseRef
Returns the enum value of phase_ref, or the default if the field is set to an invalid enum value.
Sourcepub fn set_phase_ref(&mut self, value: PhaseRef)
pub fn set_phase_ref(&mut self, value: PhaseRef)
Sets phase_ref to the provided enum value.
Sourcepub fn aggregation(&self) -> Aggregation
pub fn aggregation(&self) -> Aggregation
Returns the enum value of aggregation, or the default if the field is set to an invalid enum value.
Sourcepub fn set_aggregation(&mut self, value: Aggregation)
pub fn set_aggregation(&mut self, value: Aggregation)
Sets aggregation to the provided enum value.
Sourcepub fn location(&self) -> MeasurementLocation
pub fn location(&self) -> MeasurementLocation
Returns the enum value of location, or the default if the field is set to an invalid enum value.
Sourcepub fn set_location(&mut self, value: MeasurementLocation)
pub fn set_location(&mut self, value: MeasurementLocation)
Sets location to the provided enum value.
Sourcepub fn accumulation(&self) -> Accumulation
pub fn accumulation(&self) -> Accumulation
Returns the enum value of accumulation, or the default if the field is set to an invalid enum value.
Sourcepub fn set_accumulation(&mut self, value: Accumulation)
pub fn set_accumulation(&mut self, value: Accumulation)
Sets accumulation to the provided enum value.
Trait Implementations§
Source§impl Clone for MeasurandDefinition
impl Clone for MeasurandDefinition
Source§fn clone(&self) -> MeasurandDefinition
fn clone(&self) -> MeasurandDefinition
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MeasurandDefinition
impl Debug for MeasurandDefinition
Source§impl Default for MeasurandDefinition
impl Default for MeasurandDefinition
§impl<'de> Deserialize<'de> for MeasurandDefinition
impl<'de> Deserialize<'de> for MeasurandDefinition
§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 Message for MeasurandDefinition
impl Message for MeasurandDefinition
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for MeasurandDefinition
impl PartialEq for MeasurandDefinition
Source§fn eq(&self, other: &MeasurandDefinition) -> bool
fn eq(&self, other: &MeasurandDefinition) -> bool
self and other values to be equal, and is used by ==.