pub struct ProjectPaths { /* private fields */ }Expand description
Centralized paths rooted at ${BAMBOO_DATA_DIR}.
Implementations§
Source§impl ProjectPaths
impl ProjectPaths
pub fn new(data_dir: impl Into<PathBuf>) -> Self
pub fn data_dir(&self) -> &Path
pub fn projects_dir(&self) -> PathBuf
pub fn index_path(&self) -> PathBuf
pub fn project_home(&self, project_id: &ProjectId) -> PathBuf
pub fn manifest_path(&self, project_id: &ProjectId) -> PathBuf
pub fn settings_path(&self, project_id: &ProjectId) -> PathBuf
pub fn skills_dir( &self, project_id: &ProjectId, mode: Option<&str>, ) -> ProjectStoreResult<PathBuf>
pub fn commands_dir(&self, project_id: &ProjectId) -> PathBuf
pub fn memory_v1_dir(&self, project_id: &ProjectId) -> PathBuf
pub fn artifacts_dir(&self, project_id: &ProjectId) -> PathBuf
pub fn state_dir(&self, project_id: &ProjectId) -> PathBuf
pub fn manifest_revision_path(&self, project_id: &ProjectId) -> PathBuf
Trait Implementations§
Source§impl Clone for ProjectPaths
impl Clone for ProjectPaths
Source§fn clone(&self) -> ProjectPaths
fn clone(&self) -> ProjectPaths
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 moreAuto Trait Implementations§
impl Freeze for ProjectPaths
impl RefUnwindSafe for ProjectPaths
impl Send for ProjectPaths
impl Sync for ProjectPaths
impl Unpin for ProjectPaths
impl UnsafeUnpin for ProjectPaths
impl UnwindSafe for ProjectPaths
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