pub struct McpResourceTemplate {
pub meta: Option<HashMap<String, Value>>,
pub additional_properties: Option<HashMap<String, Value>>,
pub annotations: Option<McpResourceAnnotations>,
pub description: Option<String>,
pub icons: Option<Vec<McpResourceIcon>>,
pub mime_type: Option<String>,
pub name: String,
pub title: Option<String>,
pub uri_template: String,
}Expand description
An MCP resource template descriptor (spec ResourceTemplate): an RFC 6570 URI template, name, and optional title, description, MIME type, icons, annotations, and metadata. Server-provided fields outside the standard descriptor shape are exposed under additionalProperties.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§meta: Option<HashMap<String, Value>>Resource-template-level metadata
additional_properties: Option<HashMap<String, Value>>Server-provided non-standard descriptor fields preserved from the MCP response
annotations: Option<McpResourceAnnotations>Model/client annotations associated with this template
description: Option<String>Optional description of what this template is for
icons: Option<Vec<McpResourceIcon>>Icons associated with resources matching this template
mime_type: Option<String>MIME type for resources matching this template, if uniform
name: StringThe programmatic name of the resource template
title: Option<String>Optional human-readable display title
uri_template: StringAn RFC 6570 URI template for constructing resource URIs
Trait Implementations§
Source§impl Clone for McpResourceTemplate
impl Clone for McpResourceTemplate
Source§fn clone(&self) -> McpResourceTemplate
fn clone(&self) -> McpResourceTemplate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more