pub struct PromptInfo {
pub name: String,
pub description: Option<String>,
pub arguments: Option<Vec<PromptArgument>>,
}
Expand description
Information about a prompt
Fields§
§name: String
Name of the prompt
description: Option<String>
Description of what the prompt does
arguments: Option<Vec<PromptArgument>>
Arguments that the prompt accepts
Trait Implementations§
Source§impl Clone for PromptInfo
impl Clone for PromptInfo
Source§fn clone(&self) -> PromptInfo
fn clone(&self) -> PromptInfo
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 PromptInfo
impl Debug for PromptInfo
Source§impl<'de> Deserialize<'de> for PromptInfo
impl<'de> Deserialize<'de> for PromptInfo
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
Source§impl PartialEq for PromptInfo
impl PartialEq for PromptInfo
Source§impl Serialize for PromptInfo
impl Serialize for PromptInfo
impl StructuralPartialEq for PromptInfo
Auto Trait Implementations§
impl Freeze for PromptInfo
impl RefUnwindSafe for PromptInfo
impl Send for PromptInfo
impl Sync for PromptInfo
impl Unpin for PromptInfo
impl UnwindSafe for PromptInfo
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