pub struct Spend {
pub checks: usize,
pub questions: usize,
pub blocks: usize,
pub free: usize,
pub tokens: u64,
pub usd: f64,
}Expand description
What a decision spends, summed over checks: model calls, questions asked, blocks at the stop (an
extra round each), lessons handed over free, the pool’s tokens where logged, and the logged calls’
cost in dollars (usd, the same for any policy replayed on them: a replay makes no call). Measured,
never priced.
Fields§
§checks: usize§questions: usize§blocks: usize§free: usize§tokens: u64§usd: f64Trait Implementations§
impl Copy for Spend
impl StructuralPartialEq for Spend
Auto Trait Implementations§
impl Freeze for Spend
impl RefUnwindSafe for Spend
impl Send for Spend
impl Sync for Spend
impl Unpin for Spend
impl UnsafeUnpin for Spend
impl UnwindSafe for Spend
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