pub struct ResourceView {
pub uri: String,
pub name: String,
pub id: String,
pub title: String,
pub kind: CapabilityKind,
}Expand description
One MCP resource a builtin capability answers.
Fields§
§uri: StringThe URI a client reads.
name: StringThe short name.
id: StringThe canonical id.
title: StringThe title.
kind: CapabilityKindquery, command or resource.
Trait Implementations§
Source§impl Clone for ResourceView
impl Clone for ResourceView
Source§fn clone(&self) -> ResourceView
fn clone(&self) -> ResourceView
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 ResourceView
impl Debug for ResourceView
Auto Trait Implementations§
impl Freeze for ResourceView
impl RefUnwindSafe for ResourceView
impl Send for ResourceView
impl Sync for ResourceView
impl Unpin for ResourceView
impl UnsafeUnpin for ResourceView
impl UnwindSafe for ResourceView
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