pub struct McpResourceDef {
pub uri: String,
pub name: String,
pub description: Option<String>,
pub mime_type: Option<String>,
pub text: String,
}Expand description
A static resource to serve over MCP.
Fields§
§uri: String§name: String§description: Option<String>§mime_type: Option<String>§text: StringAuto 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