pub enum ServerCommand {
Metadata,
ListTools,
CallTool {
name: String,
arguments: Value,
},
ListResources,
ReadResource {
uri: String,
},
ListPrompts,
InstantiatePrompt {
name: String,
arguments: Option<Value>,
},
Shutdown,
}Variants§
Trait Implementations§
Source§impl Debug for ServerCommand
impl Debug for ServerCommand
Source§impl<'de> Deserialize<'de> for ServerCommand
impl<'de> Deserialize<'de> for ServerCommand
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
Auto Trait Implementations§
impl Freeze for ServerCommand
impl RefUnwindSafe for ServerCommand
impl Send for ServerCommand
impl Sync for ServerCommand
impl Unpin for ServerCommand
impl UnsafeUnpin for ServerCommand
impl UnwindSafe for ServerCommand
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