pub struct ServerTokenShare {
pub server: String,
pub tool_count: usize,
pub estimated_tokens: usize,
pub token_share_pct: f32,
pub estimated_200_turn_usd: f32,
pub standalone_score: f32,
pub standalone_errors: usize,
pub standalone_warnings: usize,
}Expand description
Per-server token, cost, and quality attribution inside a composed multi-server agent stack.
Fields§
§server: StringLogical MCP server identifier (e.g., "github", "filesystem").
tool_count: usizeNumber of tools exposed by this server.
estimated_tokens: usizeEstimated serialized prompt tokens contributed by this server.
Percentage of total composed context tokens consumed by this server (0.0..=100.0).
estimated_200_turn_usd: f32Estimated 200-turn uncached USD cost attributable to this server.
standalone_score: f32Standalone quality score of this server (1.0–5.0).
standalone_errors: usizeStandalone error count.
standalone_warnings: usizeStandalone warning count.
Trait Implementations§
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§
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