pub enum TariffSource<'buf> {
UseCdr,
Override(Vec<Versioned<'buf>>),
}Expand description
Where should the tariffs come from when pricing a CDR.
Used with cdr::price.
Variants§
UseCdr
Use the tariffs from the CDR.
Override(Vec<Versioned<'buf>>)
Ignore the tariffs from the CDR and use these instead
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'buf> Freeze for TariffSource<'buf>
impl<'buf> RefUnwindSafe for TariffSource<'buf>
impl<'buf> Send for TariffSource<'buf>
impl<'buf> Sync for TariffSource<'buf>
impl<'buf> Unpin for TariffSource<'buf>
impl<'buf> UnwindSafe for TariffSource<'buf>
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