pub enum SavingsProvenance {
Measured,
Heuristic,
Estimated,
}Expand description
Whether a savings/tokens figure came from an exact estimator ("measured"), the byte
heuristic ("heuristic"), or is a derived extrapolation like estimated_lost_tokens
("estimated") rather than a directly observed value. There is no per-provider pricing data
anywhere in this codebase, so this labels token-count provenance, not dollar cost.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SavingsProvenance
impl Clone for SavingsProvenance
Source§fn clone(&self) -> SavingsProvenance
fn clone(&self) -> SavingsProvenance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SavingsProvenance
Source§impl Debug for SavingsProvenance
impl Debug for SavingsProvenance
impl Eq for SavingsProvenance
Source§impl PartialEq for SavingsProvenance
impl PartialEq for SavingsProvenance
impl StructuralPartialEq for SavingsProvenance
Auto Trait Implementations§
impl Freeze for SavingsProvenance
impl RefUnwindSafe for SavingsProvenance
impl Send for SavingsProvenance
impl Sync for SavingsProvenance
impl Unpin for SavingsProvenance
impl UnsafeUnpin for SavingsProvenance
impl UnwindSafe for SavingsProvenance
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.