pub struct McpResourceData {
pub provider: String,
pub uri: String,
pub contents: Vec<ResourceContents>,
pub meta: Map<String, Value>,
}Expand description
Resource contents fetched from an MCP provider.
Per-content _meta (including MCP Apps _meta.ui) is preserved on each
ResourceContents entry; meta carries the result-envelope metadata.
Fields§
§provider: StringProvider the resource was read from.
uri: StringURI that was read.
contents: Vec<ResourceContents>Content blocks returned by resources/read.
meta: Map<String, Value>Envelope _meta from the read result.
Trait Implementations§
Source§impl Clone for McpResourceData
impl Clone for McpResourceData
Auto Trait Implementations§
impl Forget for McpResourceData
impl Freeze for McpResourceData
impl Move for McpResourceData
impl RefUnwindSafe for McpResourceData
impl Send for McpResourceData
impl Sync for McpResourceData
impl Unpin for McpResourceData
impl UnsafeUnpin for McpResourceData
impl UnwindSafe for McpResourceData
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