pub struct RouteInfo {
pub method: String,
pub path: String,
pub name: Option<String>,
pub middleware: Vec<String>,
pub mcp_tool_name: Option<String>,
pub mcp_description: Option<String>,
pub mcp_hint: Option<String>,
pub mcp_hidden: bool,
}Expand description
Information about a registered route for introspection
Fields§
§method: StringHTTP method (GET, POST, PUT, DELETE)
path: StringRoute path pattern (e.g., “/users/{id}”)
name: Option<String>Optional route name (e.g., “users.show”)
middleware: Vec<String>Middleware applied to this route
mcp_tool_name: Option<String>Override for auto-generated MCP tool name
mcp_description: Option<String>Override for auto-generated MCP description
mcp_hint: Option<String>Hint text appended to MCP description for AI agent guidance
When true, route is hidden from MCP tool discovery
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RouteInfo
impl RefUnwindSafe for RouteInfo
impl Send for RouteInfo
impl Sync for RouteInfo
impl Unpin for RouteInfo
impl UnsafeUnpin for RouteInfo
impl UnwindSafe for RouteInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more