pub struct PromptDefinition {
pub name: String,
pub title: Option<String>,
pub description: Option<String>,
pub icons: Option<Vec<ToolIcon>>,
pub arguments: Vec<PromptArgument>,
}Fields§
§name: String§title: Option<String>Human-readable title for display purposes
description: Option<String>§icons: Option<Vec<ToolIcon>>Optional icons for display in user interfaces
arguments: Vec<PromptArgument>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 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