pub struct Vault {
pub config: Config,
pub root: PathBuf,
pub ideas: PathBuf,
pub journals: PathBuf,
pub notes: PathBuf,
pub tasks: PathBuf,
}Fields§
§config: Config§root: PathBuf§ideas: PathBuf§journals: PathBuf§notes: PathBuf§tasks: PathBufImplementations§
Source§impl Vault
impl Vault
pub fn new<P: AsRef<Path>>(config: &Config, root: P) -> Self
pub fn is_bootstrapped(&self) -> bool
pub fn bootstrap(&self) -> Result<()>
pub fn detect(config: &Config) -> Result<Vault>
pub fn list_ideas(&self) -> Result<QueryResult>
pub fn list_journals(&self) -> Result<QueryResult>
pub fn list_notes( &self, show_notes: bool, category: &Option<String>, ) -> Result<QueryResult>
pub fn list_tasks( &self, show_tasks: bool, project: &Option<String>, ) -> Result<QueryResult>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Vault
impl RefUnwindSafe for Vault
impl Send for Vault
impl Sync for Vault
impl Unpin for Vault
impl UnwindSafe for Vault
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