pub struct PromptMetadata {
pub name: String,
pub description: Option<String>,
pub arguments: Option<Vec<Value>>,
pub server_id: Option<String>,
pub annotations: HashMap<String, Value>,
}Expand description
MCP prompt metadata.
Fields§
§name: StringPrompt name.
description: Option<String>Prompt description.
arguments: Option<Vec<Value>>Prompt arguments schema.
server_id: Option<String>Source server ID.
annotations: HashMap<String, Value>Prompt annotations.
Trait Implementations§
Source§impl Clone for PromptMetadata
impl Clone for PromptMetadata
Source§fn clone(&self) -> PromptMetadata
fn clone(&self) -> PromptMetadata
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 PromptMetadata
impl Debug for PromptMetadata
Source§impl Default for PromptMetadata
impl Default for PromptMetadata
Source§fn default() -> PromptMetadata
fn default() -> PromptMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PromptMetadata
impl<'de> Deserialize<'de> for PromptMetadata
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 PromptMetadata
impl RefUnwindSafe for PromptMetadata
impl Send for PromptMetadata
impl Sync for PromptMetadata
impl Unpin for PromptMetadata
impl UnsafeUnpin for PromptMetadata
impl UnwindSafe for PromptMetadata
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