Struct sep2_common::packages::prepayment::AccountingUnit
source · pub struct AccountingUnit {
pub energy_unit: Option<RealEnergy>,
pub monetary_unit: CurrencyCode,
pub multiplier: PowerOfTenMultiplierType,
pub value: Int32,
}
Available on crate feature
prepayment
only.Expand description
Unit for accounting; use either ‘energyUnit’ or ‘currencyUnit’ to specify the unit for ‘value’.
Fields§
§energy_unit: Option<RealEnergy>
Unit of service.
monetary_unit: CurrencyCode
Unit of currency.
multiplier: PowerOfTenMultiplierType
Multiplier for the ‘energyUnit’ or ‘monetaryUnit’.
value: Int32
Value of the monetary aspect
Trait Implementations§
source§impl Clone for AccountingUnit
impl Clone for AccountingUnit
source§fn clone(&self) -> AccountingUnit
fn clone(&self) -> AccountingUnit
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AccountingUnit
impl Debug for AccountingUnit
source§impl Default for AccountingUnit
impl Default for AccountingUnit
source§fn default() -> AccountingUnit
fn default() -> AccountingUnit
Returns the “default value” for a type. Read more
source§impl PartialEq<AccountingUnit> for AccountingUnit
impl PartialEq<AccountingUnit> for AccountingUnit
source§fn eq(&self, other: &AccountingUnit) -> bool
fn eq(&self, other: &AccountingUnit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl YaDeserialize for AccountingUnit
impl YaDeserialize for AccountingUnit
source§impl YaSerialize for AccountingUnit
impl YaSerialize for AccountingUnit
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 AccountingUnit
impl StructuralEq for AccountingUnit
impl StructuralPartialEq for AccountingUnit
Auto Trait Implementations§
impl RefUnwindSafe for AccountingUnit
impl Send for AccountingUnit
impl Sync for AccountingUnit
impl Unpin for AccountingUnit
impl UnwindSafe for AccountingUnit
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