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_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> UnsafeUnpin for Total<TCdr, TCalc>where
TCdr: UnsafeUnpin,
TCalc: UnsafeUnpin,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoCaveat for T
impl<T> IntoCaveat for T
Source§fn into_caveat<W>(self, warnings: Set<W>) -> Caveat<T, W>where
W: Warning,
fn into_caveat<W>(self, warnings: Set<W>) -> Caveat<T, W>where
W: Warning,
Any type can be converted to
Caveat<T> by supplying a list of Warnings.Source§fn into_infallible_caveat(self) -> Caveat<Self, Infallible>
fn into_infallible_caveat(self) -> Caveat<Self, Infallible>
If a
FromSchema is infallible a Caveat can be created using this method.