pub struct TemplateInfo {
pub pack_id: String,
pub template_path: PathBuf,
pub frontmatter: Option<Value>,
pub content: String,
pub pack_info: Option<RpackMetadata>,
}Expand description
Template information
Fields§
§pack_id: String§template_path: PathBuf§frontmatter: Option<Value>§content: String§pack_info: Option<RpackMetadata>Trait Implementations§
Source§impl Clone for TemplateInfo
impl Clone for TemplateInfo
Source§fn clone(&self) -> TemplateInfo
fn clone(&self) -> TemplateInfo
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 moreAuto Trait Implementations§
impl Freeze for TemplateInfo
impl RefUnwindSafe for TemplateInfo
impl Send for TemplateInfo
impl Sync for TemplateInfo
impl Unpin for TemplateInfo
impl UnwindSafe for TemplateInfo
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