pub struct BudgetResult {
pub content: String,
pub tokens: usize,
pub trimmed: bool,
pub overflow_indices: Vec<usize>,
pub total_items: usize,
pub included_items: usize,
}Expand description
Result of budget pipeline processing.
Fields§
§content: StringTOON-encoded content that fits within budget.
tokens: usizeEstimated token count of the content.
trimmed: boolWhether trimming was applied.
overflow_indices: Vec<usize>Indices of items that were excluded (overflow).
total_items: usizeTotal number of items before trimming.
included_items: usizeNumber of items included after trimming.
Trait Implementations§
Source§impl Clone for BudgetResult
impl Clone for BudgetResult
Source§fn clone(&self) -> BudgetResult
fn clone(&self) -> BudgetResult
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 moreAuto Trait Implementations§
impl Freeze for BudgetResult
impl RefUnwindSafe for BudgetResult
impl Send for BudgetResult
impl Sync for BudgetResult
impl Unpin for BudgetResult
impl UnsafeUnpin for BudgetResult
impl UnwindSafe for BudgetResult
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