pub struct McpResourceDef {
pub uri: String,
pub name: String,
pub description: String,
pub mime_type: Option<String>,
}Expand description
A resource exposed by a remote MCP server (resources/list).
Fields§
§uri: StringThe resource’s URI.
name: StringHuman-readable name.
description: StringHuman description.
mime_type: Option<String>MIME type, if the server declared one.
Trait Implementations§
Source§impl Clone for McpResourceDef
impl Clone for McpResourceDef
Source§fn clone(&self) -> McpResourceDef
fn clone(&self) -> McpResourceDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for McpResourceDef
impl Debug for McpResourceDef
Source§impl Default for McpResourceDef
impl Default for McpResourceDef
Source§fn default() -> McpResourceDef
fn default() -> McpResourceDef
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for McpResourceDef
impl RefUnwindSafe for McpResourceDef
impl Send for McpResourceDef
impl Sync for McpResourceDef
impl Unpin for McpResourceDef
impl UnsafeUnpin for McpResourceDef
impl UnwindSafe for McpResourceDef
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