pub struct LedgerPathResolver { /* private fields */ }Expand description
Path resolver for the ledger’s dedicated on-disk area, parallel to the
memory store’s memory/v1:
{data_dir}/ledger/v1/scopes/{global|projects/<key>}/
records/<record_id>.md
indexes/{by_time.json, by_status.json}
views/{AGENDA.md, TODO.md}
logs/audit.jsonlImplementations§
Source§impl LedgerPathResolver
impl LedgerPathResolver
pub fn from_data_dir(data_dir: impl Into<PathBuf>) -> Self
pub fn root(&self) -> PathBuf
pub fn projects_root(&self) -> PathBuf
pub fn scope_root( &self, scope: LedgerScope, project_key: Option<&str>, ) -> PathBuf
pub fn records_dir( &self, scope: LedgerScope, project_key: Option<&str>, ) -> PathBuf
pub fn record_path( &self, scope: LedgerScope, project_key: Option<&str>, record_id: &str, ) -> PathBuf
pub fn indexes_dir( &self, scope: LedgerScope, project_key: Option<&str>, ) -> PathBuf
pub fn views_dir( &self, scope: LedgerScope, project_key: Option<&str>, ) -> PathBuf
pub fn logs_dir(&self, scope: LedgerScope, project_key: Option<&str>) -> PathBuf
Trait Implementations§
Source§impl Clone for LedgerPathResolver
impl Clone for LedgerPathResolver
Source§fn clone(&self) -> LedgerPathResolver
fn clone(&self) -> LedgerPathResolver
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 LedgerPathResolver
impl Debug for LedgerPathResolver
Auto Trait Implementations§
impl Freeze for LedgerPathResolver
impl RefUnwindSafe for LedgerPathResolver
impl Send for LedgerPathResolver
impl Sync for LedgerPathResolver
impl Unpin for LedgerPathResolver
impl UnsafeUnpin for LedgerPathResolver
impl UnwindSafe for LedgerPathResolver
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