pub struct ContractNativeProjectionSummary {
pub token_budget: u64,
pub tokens: u64,
pub included: u64,
pub summary_only: u64,
pub dropped: u64,
pub diagnostics: Vec<String>,
}Expand description
Projection reductions and token accounting cached for the backend.
Fields§
§token_budget: u64Prompt token budget used for projection.
tokens: u64Estimated prompt tokens in the selected projection.
included: u64Cards retained in any representation.
summary_only: u64Cards reduced to summary-only form.
dropped: u64Cards dropped because they did not fit the budget.
diagnostics: Vec<String>Reduction diagnostics emitted during projection.
Trait Implementations§
Source§impl Clone for ContractNativeProjectionSummary
impl Clone for ContractNativeProjectionSummary
Source§fn clone(&self) -> ContractNativeProjectionSummary
fn clone(&self) -> ContractNativeProjectionSummary
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 Eq for ContractNativeProjectionSummary
impl StructuralPartialEq for ContractNativeProjectionSummary
Auto Trait Implementations§
impl Freeze for ContractNativeProjectionSummary
impl RefUnwindSafe for ContractNativeProjectionSummary
impl Send for ContractNativeProjectionSummary
impl Sync for ContractNativeProjectionSummary
impl Unpin for ContractNativeProjectionSummary
impl UnsafeUnpin for ContractNativeProjectionSummary
impl UnwindSafe for ContractNativeProjectionSummary
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.