pub struct MCPExtension {
pub tool: Option<ToolMetadata>,
pub resource: Option<ResourceMetadata>,
pub prompt: Option<PromptMetadata>,
}Expand description
MCP-specific metadata extension.
Carries tool, resource, or prompt metadata for the entity being processed. Immutable — set by the host.
Fields§
§tool: Option<ToolMetadata>Tool metadata (if this message involves a tool).
resource: Option<ResourceMetadata>Resource metadata (if this message involves a resource).
prompt: Option<PromptMetadata>Prompt metadata (if this message involves a prompt).
Trait Implementations§
Source§impl Clone for MCPExtension
impl Clone for MCPExtension
Source§fn clone(&self) -> MCPExtension
fn clone(&self) -> MCPExtension
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 MCPExtension
impl Debug for MCPExtension
Source§impl Default for MCPExtension
impl Default for MCPExtension
Source§fn default() -> MCPExtension
fn default() -> MCPExtension
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MCPExtension
impl<'de> Deserialize<'de> for MCPExtension
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 MCPExtension
impl RefUnwindSafe for MCPExtension
impl Send for MCPExtension
impl Sync for MCPExtension
impl Unpin for MCPExtension
impl UnsafeUnpin for MCPExtension
impl UnwindSafe for MCPExtension
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