pub struct McpRoot {
pub uri: String,
pub name: Option<String>,
}Expand description
One filesystem root a client has access to, returned by
McpContext::list_roots — a workspace directory, a mounted volume,
or similar. uri is typically a file:// URI per spec.
Fields§
§uri: String§name: Option<String>A human-readable label for the root, if the client provided one.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for McpRoot
impl RefUnwindSafe for McpRoot
impl Send for McpRoot
impl Sync for McpRoot
impl Unpin for McpRoot
impl UnsafeUnpin for McpRoot
impl UnwindSafe for McpRoot
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