pub struct EddaPaths {Show 14 fields
pub root: PathBuf,
pub edda_dir: PathBuf,
pub ledger_dir: PathBuf,
pub ledger_db: PathBuf,
pub blobs_dir: PathBuf,
pub branches_dir: PathBuf,
pub drafts_dir: PathBuf,
pub lock_file: PathBuf,
pub config_json: PathBuf,
pub patterns_dir: PathBuf,
pub blob_meta_json: PathBuf,
pub tombstones_jsonl: PathBuf,
pub archive_dir: PathBuf,
pub archive_blobs_dir: PathBuf,
}Expand description
All well-known paths under .edda/.
Fields§
§root: PathBuf§edda_dir: PathBuf§ledger_dir: PathBuf§ledger_db: PathBuf§blobs_dir: PathBuf§branches_dir: PathBuf§drafts_dir: PathBuf§lock_file: PathBuf§config_json: PathBuf§patterns_dir: PathBuf§blob_meta_json: PathBuf§tombstones_jsonl: PathBuf§archive_dir: PathBuf§archive_blobs_dir: PathBufImplementations§
Source§impl EddaPaths
impl EddaPaths
Sourcepub fn discover(repo_root: impl Into<PathBuf>) -> Self
pub fn discover(repo_root: impl Into<PathBuf>) -> Self
Derive all paths from a repo root. Pure computation, no I/O.
Sourcepub fn ensure_layout(&self) -> Result<()>
pub fn ensure_layout(&self) -> Result<()>
Create all required directories. Idempotent.
Sourcepub fn is_initialized(&self) -> bool
pub fn is_initialized(&self) -> bool
Check whether .edda/ exists.
Sourcepub fn branch_dir(&self, name: &str) -> PathBuf
pub fn branch_dir(&self, name: &str) -> PathBuf
Resolve a branch directory under .edda/branches/<name>/.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EddaPaths
impl RefUnwindSafe for EddaPaths
impl Send for EddaPaths
impl Sync for EddaPaths
impl Unpin for EddaPaths
impl UnsafeUnpin for EddaPaths
impl UnwindSafe for EddaPaths
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