pub struct Workspace {
pub root: PathBuf,
pub run_dir: PathBuf,
}Fields§
§root: PathBufThe project root: the directory holding .run/.
run_dir: PathBuf.run/ — config, generated compose overlays, the merged env file.
Implementations§
Source§impl Workspace
impl Workspace
Sourcepub fn find(start: &Path) -> Result<Self>
pub fn find(start: &Path) -> Result<Self>
The nearest workspace at or above start, the way the shell walks up.
Sourcepub fn toml_config_path(&self) -> PathBuf
pub fn toml_config_path(&self) -> PathBuf
Preferred path for new writes.
Sourcepub fn config_path(&self) -> PathBuf
pub fn config_path(&self) -> PathBuf
Existing config file: toml preferred, then json (legacy).
pub fn env_path(&self) -> PathBuf
pub fn config(&self) -> Result<Config>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Workspace
impl RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnsafeUnpin for Workspace
impl UnwindSafe for Workspace
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