pub type Content = ContentBlock;
Aliased Type§
pub enum Content {
Text {
text: String,
annotations: Option<Annotations>,
meta: Option<HashMap<String, Value>>,
},
Image {
data: String,
mime_type: String,
annotations: Option<Annotations>,
meta: Option<HashMap<String, Value>>,
},
Audio {
data: String,
mime_type: String,
annotations: Option<Annotations>,
meta: Option<HashMap<String, Value>>,
},
ResourceLink {
uri: String,
name: String,
description: Option<String>,
mime_type: Option<String>,
size: Option<u64>,
title: Option<String>,
annotations: Option<Annotations>,
meta: Option<HashMap<String, Value>>,
},
Resource {
resource: ResourceContents,
annotations: Option<Annotations>,
meta: Option<HashMap<String, Value>>,
},
}
Variants§
Text
Text content
Fields
§
annotations: Option<Annotations>
Content annotations (2025-06-18)
Image
Image content
Fields
§
annotations: Option<Annotations>
Content annotations (2025-06-18)
Audio
Audio content (2025-06-18)
Fields
§
annotations: Option<Annotations>
Content annotations (2025-06-18)
ResourceLink
ResourceLink content (2025-06-18 NEW)
Fields
§
annotations: Option<Annotations>
Content annotations (2025-06-18)
Resource
Embedded resource content (2025-06-18)
Fields
§
resource: ResourceContents
Resource contents
§
annotations: Option<Annotations>
Content annotations (2025-06-18)