pub struct Budget {
pub tokens: f64,
pub spent: f64,
pub price: f64,
}Expand description
An engineer’s budget for the collective (collectives.json budget, select.rs budget_of): the
pool tokens its checks may read per session on average, what they read per session, and the price
per pool token the policy weighs a larger pool against (select/policy.rs price, λ).
Fields§
§tokens: f64§spent: f64§price: f64Trait Implementations§
impl StructuralPartialEq for Budget
Auto Trait Implementations§
impl Freeze for Budget
impl RefUnwindSafe for Budget
impl Send for Budget
impl Sync for Budget
impl Unpin for Budget
impl UnsafeUnpin for Budget
impl UnwindSafe for Budget
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