pub struct IdConfig {
pub match_rule: String,
pub separator: String,
pub allow_unicode: bool,
pub max_depth: u32,
}Expand description
ID parsing and generation configuration
Controls how IDs are recognized in filenames and how new IDs are generated. This is the core of the zettelkasten system’s organizational structure.
Fields§
§match_rule: StringID matching rule: “strict”, “separator”, or “fuzzy”
- strict: Filename must be exactly the ID (e.g., “1a2.md”)
- separator: ID followed by separator then title (e.g., “1a2 - My Note.md”)
- fuzzy: ID at start, anything after first non-alphanumeric (e.g., “1a2_note.md”)
separator: StringSeparator between ID and title in filenames
Only used when match_rule is “separator” or when creating files with titles. Can include whitespace for prettier filenames.
allow_unicode: boolWhether to allow Unicode characters in IDs
When false, IDs are restricted to ASCII alphanumeric characters. When true, allows international characters but may cause filesystem issues.
max_depth: u32Maximum depth for ID hierarchy
Prevents runaway nesting that could cause performance issues. Set to 0 for unlimited depth (not recommended).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IdConfig
impl<'de> Deserialize<'de> for IdConfig
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 IdConfig
impl RefUnwindSafe for IdConfig
impl Send for IdConfig
impl Sync for IdConfig
impl Unpin for IdConfig
impl UnsafeUnpin for IdConfig
impl UnwindSafe for IdConfig
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