pub struct RawContextWindow {
pub total_input_tokens: u64,
pub total_output_tokens: u64,
pub context_window_size: u32,
pub used_percentage: Option<f64>,
pub remaining_percentage: Option<f64>,
pub current_usage: Option<RawCurrentUsage>,
}Fields§
§total_input_tokens: u64§total_output_tokens: u64§context_window_size: u32§used_percentage: Option<f64>Pre-calculated percentage of context window used (0-100), provided by Claude Code
remaining_percentage: Option<f64>Pre-calculated percentage of context window remaining (0-100), provided by Claude Code
current_usage: Option<RawCurrentUsage>Trait Implementations§
Source§impl Clone for RawContextWindow
impl Clone for RawContextWindow
Source§fn clone(&self) -> RawContextWindow
fn clone(&self) -> RawContextWindow
Returns a duplicate of the value. Read more
1.0.0 · 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 RawContextWindow
impl Debug for RawContextWindow
Source§impl<'de> Deserialize<'de> for RawContextWindow
impl<'de> Deserialize<'de> for RawContextWindow
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
Auto Trait Implementations§
impl Freeze for RawContextWindow
impl RefUnwindSafe for RawContextWindow
impl Send for RawContextWindow
impl Sync for RawContextWindow
impl Unpin for RawContextWindow
impl UnsafeUnpin for RawContextWindow
impl UnwindSafe for RawContextWindow
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