pub struct McpResource {
pub uri: String,
pub name: String,
pub description: String,
pub mime_type: String,
}Expand description
MCP resource — a readable data source.
Fields§
§uri: String§name: String§description: String§mime_type: StringTrait Implementations§
Source§impl Clone for McpResource
impl Clone for McpResource
Source§fn clone(&self) -> McpResource
fn clone(&self) -> McpResource
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 moreAuto Trait Implementations§
impl Freeze for McpResource
impl RefUnwindSafe for McpResource
impl Send for McpResource
impl Sync for McpResource
impl Unpin for McpResource
impl UnsafeUnpin for McpResource
impl UnwindSafe for McpResource
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