Struct sep2_common::packages::pricing::ConsumptionTariffInterval
source · pub struct ConsumptionTariffInterval {
pub consumption_block: ConsumptionBlockType,
pub environmental_cost: Vec<EnvironmentalCost>,
pub price: Option<Int32>,
pub start_value: Uint48,
pub href: Option<String>,
}
pricing
only.Fields§
§consumption_block: ConsumptionBlockType
Indicates the consumption block related to the reading. If not specified, is assumed to be “0 - N/A”.
environmental_cost: Vec<EnvironmentalCost>
§price: Option<Int32>
The charge for this rate component, per unit of measure defined by the associated ReadingType, in currency specified in TariffProfile. The Pricing service provider determines the appropriate price attribute value based on its applicable regulatory rules. For example, price could be net or inclusive of applicable taxes, fees, or levies. The Billing function set provides the ability to represent billing information in a more detailed manner.
start_value: Uint48
The lowest level of consumption that defines the starting point of this consumption step or block. Thresholds start at zero for each billing period. If specified, the first ConsumptionTariffInterval.startValue for a TimeTariffInteral instance SHALL begin at “0.” Subsequent ConsumptionTariffInterval.startValue elements SHALL be greater than the previous one.
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 ConsumptionTariffInterval
impl Clone for ConsumptionTariffInterval
source§fn clone(&self) -> ConsumptionTariffInterval
fn clone(&self) -> ConsumptionTariffInterval
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConsumptionTariffInterval
impl Debug for ConsumptionTariffInterval
source§impl Default for ConsumptionTariffInterval
impl Default for ConsumptionTariffInterval
source§fn default() -> ConsumptionTariffInterval
fn default() -> ConsumptionTariffInterval
source§impl Ord for ConsumptionTariffInterval
impl Ord for ConsumptionTariffInterval
source§impl PartialEq<ConsumptionTariffInterval> for ConsumptionTariffInterval
impl PartialEq<ConsumptionTariffInterval> for ConsumptionTariffInterval
source§fn eq(&self, other: &ConsumptionTariffInterval) -> bool
fn eq(&self, other: &ConsumptionTariffInterval) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ConsumptionTariffInterval> for ConsumptionTariffInterval
impl PartialOrd<ConsumptionTariffInterval> for ConsumptionTariffInterval
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