pub struct StatusUpdate {
pub context_usage: Option<f64>,
pub context_tokens: Option<u64>,
pub max_context_tokens: Option<u64>,
pub token_usage: Option<TokenUsage>,
pub message_id: Option<String>,
pub plan_mode: Option<bool>,
}Expand description
Status update from the server.
Fields§
§context_usage: Option<f64>Fraction of context window used (0.0–1.0).
context_tokens: Option<u64>Number of context tokens used.
max_context_tokens: Option<u64>Maximum context tokens allowed.
token_usage: Option<TokenUsage>Detailed token usage breakdown.
message_id: Option<String>Server-assigned message id.
plan_mode: Option<bool>Whether plan mode is active. null means no change.
Trait Implementations§
Source§impl Clone for StatusUpdate
impl Clone for StatusUpdate
Source§fn clone(&self) -> StatusUpdate
fn clone(&self) -> StatusUpdate
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 StatusUpdate
impl Debug for StatusUpdate
Source§impl<'de> Deserialize<'de> for StatusUpdate
impl<'de> Deserialize<'de> for StatusUpdate
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 StatusUpdate
impl PartialEq for StatusUpdate
Source§fn eq(&self, other: &StatusUpdate) -> bool
fn eq(&self, other: &StatusUpdate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StatusUpdate
impl Serialize for StatusUpdate
impl StructuralPartialEq for StatusUpdate
Auto Trait Implementations§
impl Freeze for StatusUpdate
impl RefUnwindSafe for StatusUpdate
impl Send for StatusUpdate
impl Sync for StatusUpdate
impl Unpin for StatusUpdate
impl UnsafeUnpin for StatusUpdate
impl UnwindSafe for StatusUpdate
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