pub struct Total<TCdr, TCalc = TCdr> {
pub cdr: TCdr,
pub calculated: TCalc,
}Expand description
A related source and calculated pair of total amounts.
This is used to express the source and calculated amounts for the total fields of a CDR.
total_costtotal_fixed_costtotal_energytotal_energy_costtotal_timetotal_time_costtotal_parking_timetotal_parking_costtotal_reservation_cost
Fields§
§cdr: TCdrThe source value from the CDR.
calculated: TCalcThe value calculated by the cdr::price function.
Trait Implementations§
Auto Trait Implementations§
impl<TCdr, TCalc> Freeze for Total<TCdr, TCalc>
impl<TCdr, TCalc> RefUnwindSafe for Total<TCdr, TCalc>where
TCdr: RefUnwindSafe,
TCalc: RefUnwindSafe,
impl<TCdr, TCalc> Send for Total<TCdr, TCalc>
impl<TCdr, TCalc> Sync for Total<TCdr, TCalc>
impl<TCdr, TCalc> Unpin for Total<TCdr, TCalc>
impl<TCdr, TCalc> UnwindSafe for Total<TCdr, TCalc>where
TCdr: UnwindSafe,
TCalc: UnwindSafe,
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