pub enum McpArguments {
Empty,
Body,
Query {
parameters: &'static [&'static str],
},
}Expand description
How an MCP tool’s arguments become one HTTP request.
Variants§
Empty
The endpoint takes no arguments or request body.
Body
The argument object is forwarded as the JSON request body.
Query
The named arguments are URL-encoded as query parameters.
A slice rather than one name because the bounded reads take
limit and offset alongside whatever they already took, and a
generator that could only carry one would have silently dropped
the paging contract out of every generated client.
Trait Implementations§
Source§impl Clone for McpArguments
impl Clone for McpArguments
Source§fn clone(&self) -> McpArguments
fn clone(&self) -> McpArguments
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for McpArguments
impl Debug for McpArguments
Source§impl PartialEq for McpArguments
impl PartialEq for McpArguments
Source§fn eq(&self, other: &McpArguments) -> bool
fn eq(&self, other: &McpArguments) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for McpArguments
impl Eq for McpArguments
impl StructuralPartialEq for McpArguments
Auto Trait Implementations§
impl Freeze for McpArguments
impl RefUnwindSafe for McpArguments
impl Send for McpArguments
impl Sync for McpArguments
impl Unpin for McpArguments
impl UnsafeUnpin for McpArguments
impl UnwindSafe for McpArguments
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