pub struct Resource {
pub id: &'static str,
pub content: &'static str,
pub mime_type: &'static str,
}Expand description
One entry in the embedded-resource registry.
Fields§
§id: &'static strCanonical, path-style id (e.g. "specs/jfm").
content: &'static strRaw embedded content.
mime_type: &'static strMIME type advertised to MCP clients.
Auto Trait Implementations§
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnsafeUnpin for Resource
impl UnwindSafe for Resource
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