pub struct MCPPrompt {
pub name: String,
pub description: Option<String>,
pub arguments: Option<Value>,
}
Expand description
MCP prompt definition
Fields§
§name: String
Prompt name
description: Option<String>
Prompt description
arguments: Option<Value>
Prompt arguments schema
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MCPPrompt
impl<'de> Deserialize<'de> for MCPPrompt
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 MCPPrompt
impl RefUnwindSafe for MCPPrompt
impl Send for MCPPrompt
impl Sync for MCPPrompt
impl Unpin for MCPPrompt
impl UnwindSafe for MCPPrompt
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