pub struct BudgetAllocation {
pub parent_budget_tokens: u64,
pub parent_used_tokens: u64,
pub child_fraction: f64,
pub minimum_budget: u64,
pub maximum_budget: u64,
}Fields§
§parent_budget_tokens: u64§parent_used_tokens: u64§child_fraction: f64§minimum_budget: u64§maximum_budget: u64Trait Implementations§
Source§impl Clone for BudgetAllocation
impl Clone for BudgetAllocation
Source§impl Debug for BudgetAllocation
impl Debug for BudgetAllocation
Source§impl Default for BudgetAllocation
impl Default for BudgetAllocation
Source§impl<'de> Deserialize<'de> for BudgetAllocation
impl<'de> Deserialize<'de> for BudgetAllocation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BudgetAllocation
impl PartialEq for BudgetAllocation
Source§impl Serialize for BudgetAllocation
impl Serialize for BudgetAllocation
impl StructuralPartialEq for BudgetAllocation
Auto Trait Implementations§
impl Freeze for BudgetAllocation
impl RefUnwindSafe for BudgetAllocation
impl Send for BudgetAllocation
impl Sync for BudgetAllocation
impl Unpin for BudgetAllocation
impl UnsafeUnpin for BudgetAllocation
impl UnwindSafe for BudgetAllocation
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