pub struct MeasurandRef {
pub measurand_id: String,
pub base_quantity: String,
pub direction: i32,
pub phase_ref: i32,
pub aggregation: i32,
pub location: i32,
pub accumulation: i32,
}Expand description
§22 / §25 Reference to a measurand from a point. Either resolve measurand_id
or supply an inline semantic tuple (or both, with the tuple as override).
Fields§
§measurand_id: String§base_quantity: StringOptional inline semantic tuple — avoids defining every combination as a separate measurand id.
direction: i32§phase_ref: i32§aggregation: i32§location: i32§accumulation: i32Implementations§
Source§impl MeasurandRef
impl MeasurandRef
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 MeasurandRef
impl Clone for MeasurandRef
Source§fn clone(&self) -> MeasurandRef
fn clone(&self) -> MeasurandRef
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 MeasurandRef
impl Debug for MeasurandRef
Source§impl Default for MeasurandRef
impl Default for MeasurandRef
§impl<'de> Deserialize<'de> for MeasurandRef
impl<'de> Deserialize<'de> for MeasurandRef
§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 MeasurandRef
impl Message for MeasurandRef
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 MeasurandRef
impl PartialEq for MeasurandRef
Source§fn eq(&self, other: &MeasurandRef) -> bool
fn eq(&self, other: &MeasurandRef) -> bool
self and other values to be equal, and is used by ==.