pub enum Route<'a> {
Internal,
Mapped(&'a Mapping),
Code,
Mcp {
server: &'a str,
tool: &'a str,
},
Workflow {
workflow: &'a str,
sync: bool,
},
}Expand description
Where a call goes.
Variants§
Internal
A built-in: the runtime executes it.
Mapped(&'a Mapping)
A mapped internal contract: call mapping.tool on mapping.server.
Code
A code-registered tool.
Mcp
An MCP tool.
Workflow
A workflow run.
Trait Implementations§
impl<'a> StructuralPartialEq for Route<'a>
Auto Trait Implementations§
impl<'a> Freeze for Route<'a>
impl<'a> RefUnwindSafe for Route<'a>
impl<'a> Send for Route<'a>
impl<'a> Sync for Route<'a>
impl<'a> Unpin for Route<'a>
impl<'a> UnsafeUnpin for Route<'a>
impl<'a> UnwindSafe for Route<'a>
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