Struct sep2_common::packages::metering::ReadingType
source · pub struct ReadingType {Show 18 fields
pub accumulation_behaviour: Option<AccumulationBehaviourType>,
pub calorific_value: Option<UnitValueType>,
pub commodity: Option<CommodityType>,
pub conversion_factor: Option<UnitValueType>,
pub data_qualifier: Option<DataQualifierType>,
pub flow_direction: Option<FlowDirectionType>,
pub interval_length: Option<Uint32>,
pub kind: Option<KindType>,
pub max_number_of_intervals: Option<Uint8>,
pub number_of_consumption_blocks: Option<Uint8>,
pub number_of_tou_tiers: Option<Uint8>,
pub phase: Option<PhaseCode>,
pub power_of_ten_multiplier: Option<PowerOfTenMultiplierType>,
pub sub_interval_length: Option<Uint32>,
pub supply_limit: Option<Uint48>,
pub tiered_consumption_blocks: Option<bool>,
pub uom: Option<UomType>,
pub href: Option<String>,
}
metering
only.Fields§
§accumulation_behaviour: Option<AccumulationBehaviourType>
The “accumulation behaviour” indicates how the value is represented to accumulate over time.
calorific_value: Option<UnitValueType>
The amount of heat generated when a given mass of fuel is completely burned. The CalorificValue is used to convert the measured volume or mass of gas into kWh. The CalorificValue attribute represents the current active value.
commodity: Option<CommodityType>
Indicates the commodity applicable to this ReadingType.
conversion_factor: Option<UnitValueType>
Accounts for changes in the volume of gas based on temperature and pressure. The ConversionFactor attribute represents the current active value. The ConversionFactor is dimensionless. The default value for the ConversionFactor is 1, which means no conversion is applied. A price server can advertise a new/different value at any time.
data_qualifier: Option<DataQualifierType>
The data type can be used to describe a salient attribute of the data. Possible values are average, absolute, and etc.
flow_direction: Option<FlowDirectionType>
Anything involving current might have a flow direction. Possible values include forward and reverse.
interval_length: Option<Uint32>
Default interval length specified in seconds.
kind: Option<KindType>
Compound class that contains kindCategory and kindIndex
max_number_of_intervals: Option<Uint8>
To be populated for mirrors of interval data to set the expected number of intervals per ReadingSet. Servers may discard intervals received that exceed this number.
number_of_consumption_blocks: Option<Uint8>
Number of consumption blocks. 0 means not applicable, and is the default if not specified. The value needs to be at least 1 if any actual prices are provided.
number_of_tou_tiers: Option<Uint8>
The number of TOU tiers that can be used by any resource configured by this ReadingType. Servers SHALL populate this value with the largest touTier value that will ever be used while this ReadingType is in effect. Servers SHALL set numberOfTouTiers equal to the number of standard TOU tiers plus the number of CPP tiers that may be used while this ReadingType is in effect. Servers SHALL specify a value between 0 and 255 (inclusive) for numberOfTouTiers (servers providing flat rate pricing SHOULD set numberOfTouTiers to 0, as in practice there is no difference between having no tiers and having one tier).
phase: Option<PhaseCode>
Contains phase information associated with the type.
power_of_ten_multiplier: Option<PowerOfTenMultiplierType>
Indicates the power of ten multiplier applicable to the unit of measure of this ReadingType.
sub_interval_length: Option<Uint32>
Default sub-interval length specified in seconds for Readings of ReadingType. Some demand calculations are done over a number of smaller intervals. For example, in a rolling demand calculation, the demand value is defined as the rolling sum of smaller intervals over the intervalLength. The subintervalLength is the length of the smaller interval in this calculation. It SHALL be an integral division of the intervalLength. The number of sub-intervals can be calculated by dividing the intervalLength by the subintervalLength.
supply_limit: Option<Uint48>
Reflects the supply limit set in the meter. This value can be compared to the Reading value to understand if limits are being approached or exceeded. Units follow the same definition as in this ReadingType.
tiered_consumption_blocks: Option<bool>
Specifies whether or not the consumption blocks are differentiated by TOUTier or not. Default is false, if not specified. true = consumption accumulated over individual tiers false = consumption accumulated over all tiers
uom: Option<UomType>
Indicates the measurement type for the units of measure for the readings of this type.
href: Option<String>
A reference to the resource address (URI). Required in a response to a GET, ignored otherwise.
Trait Implementations§
source§impl Clone for ReadingType
impl Clone for ReadingType
source§fn clone(&self) -> ReadingType
fn clone(&self) -> ReadingType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReadingType
impl Debug for ReadingType
source§impl Default for ReadingType
impl Default for ReadingType
source§fn default() -> ReadingType
fn default() -> ReadingType
source§impl Ord for ReadingType
impl Ord for ReadingType
source§fn cmp(&self, other: &ReadingType) -> Ordering
fn cmp(&self, other: &ReadingType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<ReadingType> for ReadingType
impl PartialEq<ReadingType> for ReadingType
source§fn eq(&self, other: &ReadingType) -> bool
fn eq(&self, other: &ReadingType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ReadingType> for ReadingType
impl PartialOrd<ReadingType> for ReadingType
source§fn partial_cmp(&self, other: &ReadingType) -> Option<Ordering>
fn partial_cmp(&self, other: &ReadingType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more