pub struct EmbeddedResource {
pub uri: String,
pub mime_type: Option<String>,
pub text: Option<String>,
pub blob: Option<Vec<u8>>,
}MCP wire types now come from rmcp::model, the reference SDK, which tracks protocol revisions for us — these hand-rolled types are pinned to MCP 2025-11-25 and do not model 2026-07-28. Scheduled for removal in 0.15.0.
Expand description
An embedded resource within a content item.
blob is stored as raw bytes and automatically base64-encoded on the wire.
Fields§
§uri: StringMCP wire types now come from rmcp::model, the reference SDK, which tracks protocol revisions for us — these hand-rolled types are pinned to MCP 2025-11-25 and do not model 2026-07-28. Scheduled for removal in 0.15.0.
mime_type: Option<String>MCP wire types now come from rmcp::model, the reference SDK, which tracks protocol revisions for us — these hand-rolled types are pinned to MCP 2025-11-25 and do not model 2026-07-28. Scheduled for removal in 0.15.0.
text: Option<String>MCP wire types now come from rmcp::model, the reference SDK, which tracks protocol revisions for us — these hand-rolled types are pinned to MCP 2025-11-25 and do not model 2026-07-28. Scheduled for removal in 0.15.0.
blob: Option<Vec<u8>>MCP wire types now come from rmcp::model, the reference SDK, which tracks protocol revisions for us — these hand-rolled types are pinned to MCP 2025-11-25 and do not model 2026-07-28. Scheduled for removal in 0.15.0.
Trait Implementations§
Source§impl Clone for EmbeddedResource
impl Clone for EmbeddedResource
Source§fn clone(&self) -> EmbeddedResource
fn clone(&self) -> EmbeddedResource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more