pub struct ZettelConfig {
pub vault: VaultConfig,
pub id: IdConfig,
pub note: NoteConfig,
pub template: TemplateConfig,
pub linking: LinkingConfig,
pub editor: EditorConfig,
pub output: OutputConfig,
pub performance: PerformanceConfig,
}Expand description
Complete configuration schema for the zettel system
This encompasses all user-configurable behavior, organized into logical sections. Each section corresponds to a major area of functionality.
SERIALIZATION NOTES:
- Uses serde for TOML serialization/deserialization
- Provides defaults for all fields to handle partial config files
- Field names match TOML keys for clear mapping
RUST PATTERNS:
- All fields are owned (String, not &str) for easier manipulation
- Uses Option
for truly optional settings - Provides Default trait for sensible fallbacks
Fields§
§vault: VaultConfigVault-specific settings
id: IdConfigID parsing and generation rules
note: NoteConfigNote creation and content settings
template: TemplateConfigTemplate system configuration
linking: LinkingConfigLinking behavior settings
editor: EditorConfigEditor integration settings
output: OutputConfigOutput formatting options
performance: PerformanceConfigPerformance and caching settings
Trait Implementations§
Source§impl Clone for ZettelConfig
impl Clone for ZettelConfig
Source§fn clone(&self) -> ZettelConfig
fn clone(&self) -> ZettelConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ZettelConfig
impl Debug for ZettelConfig
Source§impl Default for ZettelConfig
Provide sensible defaults for the entire configuration
impl Default for ZettelConfig
Provide sensible defaults for the entire configuration
Source§impl<'de> Deserialize<'de> for ZettelConfig
impl<'de> Deserialize<'de> for ZettelConfig
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 ZettelConfig
impl RefUnwindSafe for ZettelConfig
impl Send for ZettelConfig
impl Sync for ZettelConfig
impl Unpin for ZettelConfig
impl UnsafeUnpin for ZettelConfig
impl UnwindSafe for ZettelConfig
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