pub struct VaultConfig {Show 20 fields
pub name: String,
pub path: PathBuf,
pub locale: String,
pub phrases: HashMap<String, String>,
pub section_header: Option<String>,
pub section_header_work: Option<String>,
pub section_header_personal: Option<String>,
pub section_header_health: Option<String>,
pub section_header_meetings: Option<String>,
pub table_headers: Option<TableHeaders>,
pub date_format: Option<String>,
pub template_file: Option<String>,
pub file_path_format: Option<String>,
pub list_type: Option<NoteFormat>,
pub section_name: Option<String>,
pub weekly_format: Option<String>,
pub monthly_format: Option<String>,
pub quarterly_format: Option<String>,
pub yearly_format: Option<String>,
pub note_format: Option<NoteFormat>,
}Fields§
§name: String§path: PathBuf§locale: String§phrases: HashMap<String, String>§section_header: Option<String>§section_header_work: Option<String>§section_header_personal: Option<String>§section_header_health: Option<String>§section_header_meetings: Option<String>§table_headers: Option<TableHeaders>§date_format: Option<String>§template_file: Option<String>§file_path_format: Option<String>§list_type: Option<NoteFormat>§section_name: Option<String>§weekly_format: Option<String>§monthly_format: Option<String>§quarterly_format: Option<String>§yearly_format: Option<String>§note_format: Option<NoteFormat>Implementations§
Source§impl VaultConfig
impl VaultConfig
Sourcepub fn new(name: String, path: String, locale: String) -> Self
pub fn new(name: String, path: String, locale: String) -> Self
Create a new VaultConfig with tilde expansion applied to the path
Sourcepub fn get_section_header(&self, category: Option<&str>) -> Option<&String>
pub fn get_section_header(&self, category: Option<&str>) -> Option<&String>
Get the section header for a category, falling back to default section_header
Sourcepub fn test_config(name: &str, path: &str) -> Self
pub fn test_config(name: &str, path: &str) -> Self
Create a test VaultConfig with minimal required fields
Trait Implementations§
Source§impl Clone for VaultConfig
impl Clone for VaultConfig
Source§impl Debug for VaultConfig
impl Debug for VaultConfig
Source§impl<'de> Deserialize<'de> for VaultConfig
impl<'de> Deserialize<'de> for VaultConfig
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 VaultConfig
impl RefUnwindSafe for VaultConfig
impl Send for VaultConfig
impl Sync for VaultConfig
impl Unpin for VaultConfig
impl UnsafeUnpin for VaultConfig
impl UnwindSafe for VaultConfig
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