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>,
}
Available on crate feature 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

source§

fn clone(&self) -> ReadingType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ReadingType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ReadingType

source§

fn default() -> ReadingType

Returns the “default value” for a type. Read more
source§

impl Ord for ReadingType

source§

fn cmp(&self, other: &ReadingType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<ReadingType> for ReadingType

source§

fn eq(&self, other: &ReadingType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<ReadingType> for ReadingType

source§

fn partial_cmp(&self, other: &ReadingType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl SEResource for ReadingType

source§

fn href(&self) -> Option<&str>

source§

impl Validate for ReadingType

source§

impl YaDeserialize for ReadingType

source§

fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>where Self: Sized,

source§

impl YaSerialize for ReadingType

source§

fn name() -> &'static strwhere Self: Sized,

source§

fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>where Self: Sized,

source§

fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace ) -> Result<(Vec<OwnedAttribute>, Namespace), String>where Self: Sized,

source§

impl Eq for ReadingType

source§

impl StructuralEq for ReadingType

source§

impl StructuralPartialEq for ReadingType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> SEType for Twhere T: YaSerialize + YaDeserialize + Validate + RefUnwindSafe + Send + Sync + 'static,