pub struct ContextCategory {
pub name: String,
pub tokens: u64,
pub kind: String,
}Expand description
One row of the /context usage-by-category breakdown.
Fields§
§name: StringDisplay name of the row as the CLI renders it, e.g. "Messages".
Use kind (not this name) to classify the row.
tokens: u64§kind: StringWhat the row is: "used" content occupies the window; "free" is the
remaining window; "buffer" is the compaction reserve; "deferred"
rows are out-of-window tool schemas, excluded from usage math.
Trait Implementations§
Source§impl Clone for ContextCategory
impl Clone for ContextCategory
Source§fn clone(&self) -> ContextCategory
fn clone(&self) -> ContextCategory
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 ContextCategory
impl Debug for ContextCategory
Source§impl<'de> Deserialize<'de> for ContextCategory
impl<'de> Deserialize<'de> for ContextCategory
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
Source§impl PartialEq for ContextCategory
impl PartialEq for ContextCategory
Source§impl Serialize for ContextCategory
impl Serialize for ContextCategory
impl StructuralPartialEq for ContextCategory
Auto Trait Implementations§
impl Freeze for ContextCategory
impl RefUnwindSafe for ContextCategory
impl Send for ContextCategory
impl Sync for ContextCategory
impl Unpin for ContextCategory
impl UnsafeUnpin for ContextCategory
impl UnwindSafe for ContextCategory
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