pub struct ContextUse {
pub tokens: u64,
pub limit: Option<u32>,
}Expand description
The context a conversation’s next request sends, against the model’s input limit.
Fields§
§tokens: u64Tokens in use.
limit: Option<u32>The model’s input limit, when known.
Implementations§
Trait Implementations§
Source§impl Clone for ContextUse
impl Clone for ContextUse
Source§fn clone(&self) -> ContextUse
fn clone(&self) -> ContextUse
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 Copy for ContextUse
Source§impl Debug for ContextUse
impl Debug for ContextUse
Source§impl Display for ContextUse
45k/200k (22%), or 45k when the input limit is not known.
impl Display for ContextUse
45k/200k (22%), or 45k when the input limit is not known.
impl Eq for ContextUse
Source§impl PartialEq for ContextUse
impl PartialEq for ContextUse
impl StructuralPartialEq for ContextUse
Auto Trait Implementations§
impl Forget for ContextUse
impl Freeze for ContextUse
impl Move for ContextUse
impl RefUnwindSafe for ContextUse
impl Send for ContextUse
impl Sync for ContextUse
impl Unpin for ContextUse
impl UnsafeUnpin for ContextUse
impl UnwindSafe for ContextUse
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.