Struct sep2_common::packages::billing::Charge
source · pub struct Charge {
pub description: Option<String20>,
pub kind: Option<ChargeKind>,
pub value: Int32,
}
Available on crate feature
billing
only.Expand description
Charges contain charges on a customer bill. These could be items like taxes, levies, surcharges, rebates, or others. This is meant to allow the HAN device to retrieve enough information to be able to reconstruct an estimate of what the total bill would look like. (e.g. taxes, surcharges) at whatever granularity desired, using as many Charges as desired during a billing period. There can also be any number of Charges associated with different ReadingTypes to distinguish between TOU tiers, consumption blocks, or demand charges.
Fields§
§description: Option<String20>
A description of the charge.
kind: Option<ChargeKind>
The type (kind) of charge.
value: Int32
A monetary charge.
Trait Implementations§
source§impl PartialEq<Charge> for Charge
impl PartialEq<Charge> for Charge
source§impl YaSerialize for Charge
impl YaSerialize for Charge
fn name() -> &'static strwhere Self: Sized,
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>where Self: Sized,
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace ) -> Result<(Vec<OwnedAttribute>, Namespace), String>where Self: Sized,
impl Eq for Charge
impl StructuralEq for Charge
impl StructuralPartialEq for Charge
Auto Trait Implementations§
impl RefUnwindSafe for Charge
impl Send for Charge
impl Sync for Charge
impl Unpin for Charge
impl UnwindSafe for Charge
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more