pub struct Endpoint {
pub method: &'static str,
pub path: &'static str,
pub purpose: &'static str,
pub mcp: Option<McpTool>,
}Expand description
One HTTP endpoint on the node.
Fields§
§method: &'static strHTTP method.
path: &'static strPath, including any query parameter that is part of the contract.
purpose: &'static strWhat it is for, one line.
mcp: Option<McpTool>MCP tool metadata when this endpoint is safe for agents to call.
Internal hook endpoints deliberately carry None.
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnsafeUnpin for Endpoint
impl UnwindSafe for Endpoint
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