pub struct PromptDefinition {
pub name: String,
pub description: Option<String>,
pub arguments: Option<Vec<PromptArgument>>,
}Expand description
Prompt definition for prompts/list.
Fields§
§name: StringPrompt name (unique).
description: Option<String>Human-readable description.
arguments: Option<Vec<PromptArgument>>Arguments the prompt accepts.
Trait Implementations§
Source§impl Clone for PromptDefinition
impl Clone for PromptDefinition
Source§fn clone(&self) -> PromptDefinition
fn clone(&self) -> PromptDefinition
Returns a duplicate of the value. Read more
1.0.0 · 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 PromptDefinition
impl Debug for PromptDefinition
Source§impl<'de> Deserialize<'de> for PromptDefinition
impl<'de> Deserialize<'de> for PromptDefinition
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 PromptDefinition
impl RefUnwindSafe for PromptDefinition
impl Send for PromptDefinition
impl Sync for PromptDefinition
impl Unpin for PromptDefinition
impl UnsafeUnpin for PromptDefinition
impl UnwindSafe for PromptDefinition
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