pub struct ContextMcpTool {
pub name: String,
pub server_name: String,
pub tokens: u64,
}Expand description
An MCP tool’s token contribution, in ContextUsage::mcp_tools.
Fields§
§name: StringWire name, e.g. "mcp__linear__create_issue".
server_name: String§tokens: u64Trait Implementations§
Source§impl Clone for ContextMcpTool
impl Clone for ContextMcpTool
Source§fn clone(&self) -> ContextMcpTool
fn clone(&self) -> ContextMcpTool
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 ContextMcpTool
impl Debug for ContextMcpTool
Source§impl<'de> Deserialize<'de> for ContextMcpTool
impl<'de> Deserialize<'de> for ContextMcpTool
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 ContextMcpTool
impl PartialEq for ContextMcpTool
Source§impl Serialize for ContextMcpTool
impl Serialize for ContextMcpTool
impl StructuralPartialEq for ContextMcpTool
Auto Trait Implementations§
impl Freeze for ContextMcpTool
impl RefUnwindSafe for ContextMcpTool
impl Send for ContextMcpTool
impl Sync for ContextMcpTool
impl Unpin for ContextMcpTool
impl UnsafeUnpin for ContextMcpTool
impl UnwindSafe for ContextMcpTool
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