pub enum Charge {
Priced {
micros: Micros,
currency: String,
},
Unpriced,
WrongCurrency {
priced_in: String,
},
}Expand description
What a priced call cost, or why it could not be priced.
Variants§
Priced
Millionths of currency.
Unpriced
No price is configured for the model that answered.
WrongCurrency
A price exists and is in a different currency than the budget states. Converting would need a rate, which is a second time-dependent input the toolchain does not have.
Trait Implementations§
impl Eq for Charge
impl StructuralPartialEq for Charge
Auto Trait Implementations§
impl Freeze for Charge
impl RefUnwindSafe for Charge
impl Send for Charge
impl Sync for Charge
impl Unpin for Charge
impl UnsafeUnpin for Charge
impl UnwindSafe for Charge
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