pub struct ContractProjection {
pub text: String,
pub tokens: usize,
pub included: usize,
pub summary_only: usize,
pub dropped: usize,
pub diagnostics: Vec<Diagnostic>,
}Expand description
A token-counted model-facing projection of ranked contract cards.
Fields§
§text: StringComplete rendered projection text that fits the configured budget.
tokens: usizeEstimated prompt tokens in Self::text.
included: usizeCards retained in any representation.
summary_only: usizeCards reduced all the way to summary-only form.
dropped: usizeCards dropped because even their summary-only form did not fit.
diagnostics: Vec<Diagnostic>Non-fatal reduction and drop diagnostics.
Implementations§
Trait Implementations§
Source§impl Clone for ContractProjection
impl Clone for ContractProjection
Source§fn clone(&self) -> ContractProjection
fn clone(&self) -> ContractProjection
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 moreSource§impl Debug for ContractProjection
impl Debug for ContractProjection
Source§impl Default for ContractProjection
impl Default for ContractProjection
Source§fn default() -> ContractProjection
fn default() -> ContractProjection
Returns the “default value” for a type. Read more
impl Eq for ContractProjection
Source§impl PartialEq for ContractProjection
impl PartialEq for ContractProjection
impl StructuralPartialEq for ContractProjection
Auto Trait Implementations§
impl Freeze for ContractProjection
impl RefUnwindSafe for ContractProjection
impl Send for ContractProjection
impl Sync for ContractProjection
impl Unpin for ContractProjection
impl UnsafeUnpin for ContractProjection
impl UnwindSafe for ContractProjection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.