pub struct PromptTemplate {
pub name: String,
pub description: String,
pub argument_hint: Option<String>,
pub content: String,
pub file_path: PathBuf,
pub source: SourceInfo,
}Expand description
A prompt template, expanded by /name args.
Fields§
§name: StringThe command name: the file name without .md.
description: StringFrom frontmatter, else the first non-empty line, cut at 60 characters.
argument_hint: Option<String>argument-hint from frontmatter.
content: StringThe body.
file_path: PathBufThe file.
source: SourceInfoWhere it was found.
Trait Implementations§
Source§impl Clone for PromptTemplate
impl Clone for PromptTemplate
Source§impl Debug for PromptTemplate
impl Debug for PromptTemplate
impl Eq for PromptTemplate
Source§impl PartialEq for PromptTemplate
impl PartialEq for PromptTemplate
impl StructuralPartialEq for PromptTemplate
Auto Trait Implementations§
impl Forget for PromptTemplate
impl Freeze for PromptTemplate
impl RefUnwindSafe for PromptTemplate
impl Send for PromptTemplate
impl Sync for PromptTemplate
impl Unpin for PromptTemplate
impl UnsafeUnpin for PromptTemplate
impl UnwindSafe for PromptTemplate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.