pub enum RatingError {
NoPriceForMeter {
meter_kind: MeterKind,
snapshot_id: String,
},
DecimalOverflow {
meter_kind: MeterKind,
quantity: u64,
unit_price: Decimal,
},
InvalidTierConfig(String),
NoMatchingTier {
usage_mtok: u64,
},
Other(String),
}Expand description
Error type for rating operations.
Variants§
NoPriceForMeter
No price found for this meter kind in the snapshot.
DecimalOverflow
Decimal overflow during cost calculation.
InvalidTierConfig(String)
Invalid tier configuration.
NoMatchingTier
No tiers match the given usage.
Other(String)
Generic error.
Trait Implementations§
Source§impl Clone for RatingError
impl Clone for RatingError
Source§fn clone(&self) -> RatingError
fn clone(&self) -> RatingError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RatingError
impl RefUnwindSafe for RatingError
impl Send for RatingError
impl Sync for RatingError
impl Unpin for RatingError
impl UnsafeUnpin for RatingError
impl UnwindSafe for RatingError
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