pub struct MengePreis {
pub menge_kwh: Decimal,
pub preis_ct_per_kwh: Decimal,
}Expand description
A metered quantity priced at a rate.
Fields§
§menge_kwh: DecimalMetered energy in kWh.
preis_ct_per_kwh: DecimalRate in ct/kWh.
Trait Implementations§
Source§impl Clone for MengePreis
impl Clone for MengePreis
Source§fn clone(&self) -> MengePreis
fn clone(&self) -> MengePreis
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MengePreis
Source§impl Debug for MengePreis
impl Debug for MengePreis
impl Eq for MengePreis
Source§impl PartialEq for MengePreis
impl PartialEq for MengePreis
Source§impl Serialize for MengePreis
impl Serialize for MengePreis
impl StructuralPartialEq for MengePreis
Auto Trait Implementations§
impl Freeze for MengePreis
impl RefUnwindSafe for MengePreis
impl Send for MengePreis
impl Sync for MengePreis
impl Unpin for MengePreis
impl UnsafeUnpin for MengePreis
impl UnwindSafe for MengePreis
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