pub struct McpView {
pub server_name: &'static str,
pub protocol_versions: &'static [&'static str],
pub tools: Vec<ToolView>,
pub resources: Vec<ResourceView>,
pub resource_template: &'static str,
}Expand description
The MCP surface as the registry projects it.
Fields§
§server_name: &'static strThe server name initialize answers with.
protocol_versions: &'static [&'static str]The protocol versions accepted, newest first.
tools: Vec<ToolView>The tools, in registry order.
resources: Vec<ResourceView>The resources builtin capabilities answer (majordomus://repository, …), in
registry order. Every object of the layer is one more resource; those are the
index’s objects.
resource_template: &'static strThe URI shape of a declarative object’s resource.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for McpView
impl RefUnwindSafe for McpView
impl Send for McpView
impl Sync for McpView
impl Unpin for McpView
impl UnsafeUnpin for McpView
impl UnwindSafe for McpView
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