pub struct ContextProjection {
pub messages: Vec<ChatMessage>,
pub estimated_tokens: usize,
pub omitted_messages: usize,
}Fields§
§messages: Vec<ChatMessage>§estimated_tokens: usize§omitted_messages: usizeTrait Implementations§
Source§impl Clone for ContextProjection
impl Clone for ContextProjection
Source§fn clone(&self) -> ContextProjection
fn clone(&self) -> ContextProjection
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 ContextProjection
impl Debug for ContextProjection
Source§impl PartialEq for ContextProjection
impl PartialEq for ContextProjection
impl StructuralPartialEq for ContextProjection
Auto Trait Implementations§
impl Freeze for ContextProjection
impl RefUnwindSafe for ContextProjection
impl Send for ContextProjection
impl Sync for ContextProjection
impl Unpin for ContextProjection
impl UnsafeUnpin for ContextProjection
impl UnwindSafe for ContextProjection
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