pub struct IntrospectionResult {
pub server: ServerMetadata,
pub tools: Vec<ToolMetadata>,
}Expand description
Result of server introspection.
Contains server information and list of available tools, formatted for display to the user.
§Examples
use mcp_execution_cli::commands::introspect::{IntrospectionResult, ServerMetadata};
let result = IntrospectionResult {
server: ServerMetadata {
id: "github".to_string(),
name: "github".to_string(),
version: "1.0.0".to_string(),
supports_tools: true,
supports_resources: false,
supports_prompts: false,
},
tools: vec![],
};
assert_eq!(result.server.name, "github");Fields§
§server: ServerMetadataServer metadata
tools: Vec<ToolMetadata>List of available tools
Trait Implementations§
Source§impl Clone for IntrospectionResult
impl Clone for IntrospectionResult
Source§fn clone(&self) -> IntrospectionResult
fn clone(&self) -> IntrospectionResult
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 IntrospectionResult
impl Debug for IntrospectionResult
Auto Trait Implementations§
impl Freeze for IntrospectionResult
impl RefUnwindSafe for IntrospectionResult
impl Send for IntrospectionResult
impl Sync for IntrospectionResult
impl Unpin for IntrospectionResult
impl UnsafeUnpin for IntrospectionResult
impl UnwindSafe for IntrospectionResult
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