pub type ResourceInfo = Resource;
Aliased Type§
pub struct ResourceInfo {
pub uri: String,
pub name: String,
pub description: Option<String>,
pub mime_type: Option<String>,
pub annotations: Option<Annotations>,
pub size: Option<u64>,
pub title: Option<String>,
pub meta: Option<HashMap<String, Value>>,
}
Fields§
§uri: String
URI of the resource
name: String
Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn’t present).
description: Option<String>
Description of the resource
mime_type: Option<String>
MIME type of the resource
annotations: Option<Annotations>
Resource annotations (2025-06-18)
size: Option<u64>
Resource size in bytes (2025-06-18)
title: Option<String>
Intended for UI and end-user contexts
meta: Option<HashMap<String, Value>>
Metadata field for future extensions