pub struct Command {
pub name: String,
pub description: String,
pub argument_hint: String,
pub body: String,
pub file: PathBuf,
pub meta: BTreeMap<String, String>,
}Expand description
One slash command.
Fields§
§name: String[a-z0-9][a-z0-9-]{0,63}, from the file name; what the user types after /.
description: String§argument_hint: StringWhat to type after the name, e.g. <file> [focus].
body: StringThe prompt template, frontmatter removed.
file: PathBuf§meta: BTreeMap<String, String>Other frontmatter keys, kept as text.
Implementations§
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Forget for Command
impl Freeze for Command
impl Move for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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.