pub struct ContextReceipt {
pub valid_at: Timestamp,
pub known_at: Timestamp,
pub source_position: Option<u64>,
pub estimator: String,
pub token_budget: usize,
pub estimated_tokens: usize,
pub examined_facts: usize,
pub selected_facts: usize,
pub omitted_by_budget: usize,
pub excluded_by_scope: usize,
}Fields§
§valid_at: Timestamp§known_at: Timestamp§source_position: Option<u64>§estimator: String§token_budget: usize§estimated_tokens: usize§examined_facts: usize§selected_facts: usize§omitted_by_budget: usize§excluded_by_scope: usizeTrait Implementations§
Source§impl Clone for ContextReceipt
impl Clone for ContextReceipt
Source§fn clone(&self) -> ContextReceipt
fn clone(&self) -> ContextReceipt
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 ContextReceipt
impl Debug for ContextReceipt
Source§impl<'de> Deserialize<'de> for ContextReceipt
impl<'de> Deserialize<'de> for ContextReceipt
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
impl Eq for ContextReceipt
Source§impl PartialEq for ContextReceipt
impl PartialEq for ContextReceipt
Source§impl Serialize for ContextReceipt
impl Serialize for ContextReceipt
impl StructuralPartialEq for ContextReceipt
Auto Trait Implementations§
impl Freeze for ContextReceipt
impl RefUnwindSafe for ContextReceipt
impl Send for ContextReceipt
impl Sync for ContextReceipt
impl Unpin for ContextReceipt
impl UnsafeUnpin for ContextReceipt
impl UnwindSafe for ContextReceipt
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