pub struct RouteRule {
pub methods: Vec<String>,
pub pattern: Option<Regex>,
pub mcp_type: McpType,
pub priority: i32,
}Expand description
A single route mapping rule.
Fields§
§methods: Vec<String>HTTP methods this rule applies to (empty = all methods).
pattern: Option<Regex>Path pattern (regex) this rule applies to (None = all paths).
mcp_type: McpTypeWhat MCP type to map matching operations to.
priority: i32Priority (higher = checked first).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RouteRule
impl RefUnwindSafe for RouteRule
impl Send for RouteRule
impl Sync for RouteRule
impl Unpin for RouteRule
impl UnsafeUnpin for RouteRule
impl UnwindSafe for RouteRule
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