pub struct TemplateConfig {
pub enabled: bool,
pub file: String,
pub directory: String,
pub default_template: String,
pub require_title: bool,
pub require_link: bool,
}Expand description
Template system configuration
Controls whether and how custom templates are used for note creation. Templates allow advanced users to customize note structure beyond basic formatting.
Fields§
§enabled: boolWhether to use custom templates instead of built-in formatting
file: StringPath to template file (relative to vault root)
Template supports {{title}} and {{link}} placeholders.
directory: StringDirectory containing multiple template files
If specified, users can choose from multiple templates.
default_template: StringDefault template name when directory is used
require_title: boolWhether template validation requires {{title}} placeholder
require_link: boolWhether template validation requires {{link}} placeholder
Trait Implementations§
Source§impl Clone for TemplateConfig
impl Clone for TemplateConfig
Source§fn clone(&self) -> TemplateConfig
fn clone(&self) -> TemplateConfig
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 TemplateConfig
impl Debug for TemplateConfig
Source§impl Default for TemplateConfig
impl Default for TemplateConfig
Source§impl<'de> Deserialize<'de> for TemplateConfig
impl<'de> Deserialize<'de> for TemplateConfig
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 TemplateConfig
impl RefUnwindSafe for TemplateConfig
impl Send for TemplateConfig
impl Sync for TemplateConfig
impl Unpin for TemplateConfig
impl UnsafeUnpin for TemplateConfig
impl UnwindSafe for TemplateConfig
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