pub struct TemplateManager { /* private fields */ }Expand description
Template manager for handling multiple templates (future feature)
This would enable template selection during note creation:
- Academic paper template
- Daily note template
- Meeting notes template
- Reference note template
For now, it’s a placeholder for future expansion.
Implementations§
Source§impl TemplateManager
impl TemplateManager
Sourcepub fn register_template(&mut self, name: String, content: String)
pub fn register_template(&mut self, name: String, content: String)
Register a template with a name
Sourcepub fn get_template(&self, name: &str) -> Option<&String>
pub fn get_template(&self, name: &str) -> Option<&String>
Get template by name
Sourcepub fn list_templates(&self) -> Vec<&String>
pub fn list_templates(&self) -> Vec<&String>
List available template names
Auto Trait Implementations§
impl Freeze for TemplateManager
impl RefUnwindSafe for TemplateManager
impl Send for TemplateManager
impl Sync for TemplateManager
impl Unpin for TemplateManager
impl UnsafeUnpin for TemplateManager
impl UnwindSafe for TemplateManager
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