pub struct McpMethod;Expand description
Enumerates all supported MCP methods
Implementations§
Source§impl McpMethod
impl McpMethod
pub const TOOLS_LIST: &'static str = "tools/list"
pub const TOOLS_CALL: &'static str = "tools/call"
pub const PROMPTS_LIST: &'static str = "prompts/list"
pub const PROMPTS_GET: &'static str = "prompts/get"
pub const RESOURCES_LIST: &'static str = "resources/list"
pub const RESOURCES_READ: &'static str = "resources/read"
pub const RESOURCES_TEMPLATES_LIST: &'static str = "resources/templates/list"
Sourcepub const ALL_VALUES: &'static [&'static str]
pub const ALL_VALUES: &'static [&'static str]
All valid values for this type
Auto Trait Implementations§
impl Freeze for McpMethod
impl RefUnwindSafe for McpMethod
impl Send for McpMethod
impl Sync for McpMethod
impl Unpin for McpMethod
impl UnsafeUnpin for McpMethod
impl UnwindSafe for McpMethod
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