pub struct McpResourceInfo {
pub provider: String,
pub uri: String,
pub name: String,
pub description: Option<String>,
pub mime_type: Option<String>,
pub size: Option<i64>,
}Expand description
Summary of an MCP resource exposed by a provider.
Fields§
§provider: StringProvider that exposed the resource.
uri: StringCanonical resource URI.
name: StringHuman-readable resource name.
description: Option<String>Optional resource description.
mime_type: Option<String>Advertised MIME type, when the server provides one.
size: Option<i64>Advertised size in bytes, when the server provides one.
Trait Implementations§
Source§impl Clone for McpResourceInfo
impl Clone for McpResourceInfo
Auto Trait Implementations§
impl Forget for McpResourceInfo
impl Freeze for McpResourceInfo
impl RefUnwindSafe for McpResourceInfo
impl Send for McpResourceInfo
impl Sync for McpResourceInfo
impl Unpin for McpResourceInfo
impl UnsafeUnpin for McpResourceInfo
impl UnwindSafe for McpResourceInfo
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