pub enum McpMethod {
Show 32 variants
Initialize,
Ping,
ResourcesList,
ResourcesTemplatesList,
ResourcesRead,
ResourcesSubscribe,
ResourcesUnsubscribe,
PromptsList,
PromptsGet,
ToolsList,
ToolsCall,
TasksGet,
TasksResult,
TasksList,
TasksCancel,
LoggingSetLevel,
CompletionComplete,
ElicitationCreate,
SamplingCreateMessage,
RootsList,
NotificationsInitialized,
NotificationsResourcesListChanged,
NotificationsResourcesUpdated,
NotificationsPromptsListChanged,
NotificationsToolsListChanged,
NotificationsProgress,
NotificationsMessage,
NotificationsCancelled,
NotificationsRootsListChanged,
NotificationsTasksStatus,
NotificationsElicitationComplete,
Custom(String),
}Expand description
MCP method names
Variants§
Initialize
Ping
ResourcesList
ResourcesTemplatesList
ResourcesRead
ResourcesSubscribe
ResourcesUnsubscribe
PromptsList
PromptsGet
ToolsList
ToolsCall
TasksGet
TasksResult
TasksList
TasksCancel
LoggingSetLevel
CompletionComplete
ElicitationCreate
SamplingCreateMessage
RootsList
NotificationsInitialized
NotificationsResourcesListChanged
NotificationsResourcesUpdated
NotificationsPromptsListChanged
NotificationsToolsListChanged
NotificationsProgress
NotificationsMessage
NotificationsCancelled
NotificationsRootsListChanged
NotificationsTasksStatus
NotificationsElicitationComplete
Custom(String)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for McpMethod
impl<'de> Deserialize<'de> for McpMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for McpMethod
impl StructuralPartialEq for McpMethod
Auto Trait Implementations§
impl Freeze for McpMethod
impl RefUnwindSafe for McpMethod
impl Send for McpMethod
impl Sync for McpMethod
impl Unpin 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