pub struct ServerBreakdown {
pub server: String,
pub calls: u64,
pub call_chars: u64,
pub result_chars: u64,
pub est_tokens: u64,
}Expand description
Per-MCP-server context footprint: the tool-use JSON the assistant emitted to
call the server’s tools, plus the result payloads that came back (attributed
via crate::model::Event::tool_use_id). Plain built-in tools (Read/Edit/…)
are grouped under the synthetic server name ServerBreakdown::BUILTIN.
Fields§
§server: StringMCP server name (mcp__<server>__…), or ServerBreakdown::BUILTIN.
calls: u64§call_chars: u64Chars of tool-use input JSON sent to this server’s tools.
result_chars: u64Chars of tool-result payloads returned by this server’s tools.
est_tokens: u64Estimated tokens for call_chars + result_chars.
Implementations§
Trait Implementations§
Source§impl Clone for ServerBreakdown
impl Clone for ServerBreakdown
Source§fn clone(&self) -> ServerBreakdown
fn clone(&self) -> ServerBreakdown
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 ServerBreakdown
impl Debug for ServerBreakdown
Auto Trait Implementations§
impl Freeze for ServerBreakdown
impl RefUnwindSafe for ServerBreakdown
impl Send for ServerBreakdown
impl Sync for ServerBreakdown
impl Unpin for ServerBreakdown
impl UnsafeUnpin for ServerBreakdown
impl UnwindSafe for ServerBreakdown
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