Struct tpnote_lib::config::LibCfg
source · pub struct LibCfg {
pub filename: Filename,
pub tmpl: Tmpl,
pub tmpl_html: TmplHtml,
}Expand description
Configuration data, deserialized from the configuration file.
Fields§
§filename: FilenameConfiguration of filename parsing.
tmpl: TmplConfiguration of content and filename templates.
tmpl_html: TmplHtmlConfiguration of HTML templates.
Implementations§
source§impl LibCfg
impl LibCfg
sourcepub fn assert_validity(&self) -> Result<(), LibCfgError>
pub fn assert_validity(&self) -> Result<(), LibCfgError>
Perfom some sematic consitency checks.
sort_tag_extra_separatormust NOT be insort_tag_chars.sort_tag_extra_separatormust NOTFILENAME_DOTFILE_MARKER.copy_counter_extra_separatormust be one ofsanitize_filename_reader_friendly::TRIM_LINE_CHARS.- All characters of
sort_tag_separatormust be insort_tag_chars. sort_tag_separatormust start with NOTFILENAME_DOTFILE_MARKER.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LibCfg
impl<'de> Deserialize<'de> for LibCfg
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 RefUnwindSafe for LibCfg
impl Send for LibCfg
impl Sync for LibCfg
impl Unpin for LibCfg
impl UnwindSafe for LibCfg
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