pub struct ToolSummary {
pub typescript_name: String,
pub description: String,
pub category: Option<String>,
pub keywords: Option<String>,
pub short_description: Option<String>,
}Expand description
Summary of a tool for index file generation.
Lighter-weight than full ToolContext, used only for
re-exports and documentation in index.ts.
§Examples
use mcp_execution_codegen::progressive::ToolSummary;
let summary = ToolSummary {
typescript_name: "createIssue".to_string(),
description: "Creates a new issue".to_string(),
category: Some("issues".to_string()),
keywords: Some("create,issue,new".to_string()),
short_description: Some("Create a new issue".to_string()),
};
assert_eq!(summary.typescript_name, "createIssue");Fields§
§typescript_name: StringTypeScript-friendly name (camelCase)
description: StringHuman-readable description
category: Option<String>Optional category for tool grouping
keywords: Option<String>Optional keywords for discovery via grep/search
short_description: Option<String>Optional short description for header comment
Trait Implementations§
Source§impl Clone for ToolSummary
impl Clone for ToolSummary
Source§fn clone(&self) -> ToolSummary
fn clone(&self) -> ToolSummary
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 ToolSummary
impl Debug for ToolSummary
Source§impl<'de> Deserialize<'de> for ToolSummary
impl<'de> Deserialize<'de> for ToolSummary
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 ToolSummary
impl RefUnwindSafe for ToolSummary
impl Send for ToolSummary
impl Sync for ToolSummary
impl Unpin for ToolSummary
impl UnwindSafe for ToolSummary
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