pub struct Template {
pub id: String,
pub name: String,
pub language: String,
pub content: String,
pub placeholders: Vec<Placeholder>,
pub metadata: TemplateMetadata,
}Expand description
Represents a code template with placeholders
Fields§
§id: StringUnique identifier for the template
name: StringHuman-readable name
language: StringProgramming language
content: StringTemplate content with placeholders
placeholders: Vec<Placeholder>List of placeholders in the template
metadata: TemplateMetadataTemplate metadata
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Template
impl<'de> Deserialize<'de> for Template
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 Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnwindSafe for Template
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