pub struct CommandFrontmatter {
pub description: Option<String>,
pub name: Option<String>,
pub allowed_tools: Option<Value>,
pub argument_hint: Option<String>,
pub arguments: Option<Value>,
pub when_to_use: Option<String>,
pub version: Option<String>,
pub model: Option<String>,
pub effort: Option<String>,
pub disable_model_invocation: Option<bool>,
pub user_invocable: Option<bool>,
pub shell: Option<Value>,
}Expand description
Frontmatter data parsed from command markdown files
Fields§
§description: Option<String>§name: Option<String>§allowed_tools: Option<Value>§argument_hint: Option<String>§arguments: Option<Value>§when_to_use: Option<String>§version: Option<String>§model: Option<String>§effort: Option<String>§disable_model_invocation: Option<bool>§user_invocable: Option<bool>§shell: Option<Value>Trait Implementations§
Source§impl Clone for CommandFrontmatter
impl Clone for CommandFrontmatter
Source§fn clone(&self) -> CommandFrontmatter
fn clone(&self) -> CommandFrontmatter
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 CommandFrontmatter
impl Debug for CommandFrontmatter
Source§impl Default for CommandFrontmatter
impl Default for CommandFrontmatter
Source§fn default() -> CommandFrontmatter
fn default() -> CommandFrontmatter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommandFrontmatter
impl<'de> Deserialize<'de> for CommandFrontmatter
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 CommandFrontmatter
impl RefUnwindSafe for CommandFrontmatter
impl Send for CommandFrontmatter
impl Sync for CommandFrontmatter
impl Unpin for CommandFrontmatter
impl UnsafeUnpin for CommandFrontmatter
impl UnwindSafe for CommandFrontmatter
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