pub struct TemplateFrontmatter {
pub name: String,
pub description: String,
pub variables: Vec<TemplateVariable>,
pub type: Option<String>,
pub labels: Option<Vec<String>>,
pub target_files: Option<Vec<String>>,
pub context: Option<Vec<String>>,
pub prompt: Option<String>,
}Expand description
Template frontmatter containing metadata and variable definitions
Fields§
§name: StringTemplate name (identifier)
description: StringHuman-readable description
variables: Vec<TemplateVariable>Variable definitions
type: Option<String>Default spec type to use
labels: Option<Vec<String>>Default labels to apply
target_files: Option<Vec<String>>Default target files
context: Option<Vec<String>>Default context files
prompt: Option<String>Default prompt to use
Trait Implementations§
Source§impl Clone for TemplateFrontmatter
impl Clone for TemplateFrontmatter
Source§fn clone(&self) -> TemplateFrontmatter
fn clone(&self) -> TemplateFrontmatter
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 TemplateFrontmatter
impl Debug for TemplateFrontmatter
Source§impl<'de> Deserialize<'de> for TemplateFrontmatter
impl<'de> Deserialize<'de> for TemplateFrontmatter
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 TemplateFrontmatter
impl RefUnwindSafe for TemplateFrontmatter
impl Send for TemplateFrontmatter
impl Sync for TemplateFrontmatter
impl Unpin for TemplateFrontmatter
impl UnwindSafe for TemplateFrontmatter
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