pub struct RoutingTarget { /* private fields */ }Expand description
The operation a request addresses, and the thing it addresses it against.
A pair rather than two loose strings because the specification requires the
two together: a Mcp-Method on its own routes to an operation but names no
target, and a tool call is the only method that is about one specific
thing.
Implementations§
Source§impl RoutingTarget
impl RoutingTarget
Sourcepub const fn new(method: MethodName, name: RoutingName) -> Self
pub const fn new(method: MethodName, name: RoutingName) -> Self
Pairs a method with the thing it acts on.
Sourcepub const fn method(&self) -> &MethodName
pub const fn method(&self) -> &MethodName
The operation.
Sourcepub const fn name(&self) -> &RoutingName
pub const fn name(&self) -> &RoutingName
The thing being operated on.
Trait Implementations§
Source§impl Clone for RoutingTarget
impl Clone for RoutingTarget
Source§impl Debug for RoutingTarget
impl Debug for RoutingTarget
impl Eq for RoutingTarget
Source§impl PartialEq for RoutingTarget
impl PartialEq for RoutingTarget
impl StructuralPartialEq for RoutingTarget
Auto Trait Implementations§
impl Freeze for RoutingTarget
impl RefUnwindSafe for RoutingTarget
impl Send for RoutingTarget
impl Sync for RoutingTarget
impl Unpin for RoutingTarget
impl UnsafeUnpin for RoutingTarget
impl UnwindSafe for RoutingTarget
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