pub struct ProjectContext { /* private fields */ }Implementations§
Source§impl ProjectContext
impl ProjectContext
pub const fn new(root: PathBuf) -> Self
pub fn discover() -> Self
pub fn discover_from(start: &Path) -> Self
pub fn root(&self) -> &Path
pub fn resolve(&self, path: ProjectPath) -> PathBuf
pub fn systemprompt_dir(&self) -> PathBuf
pub fn profiles_dir(&self) -> PathBuf
pub fn profile_dir(&self, name: &str) -> PathBuf
pub fn profile_path(&self, name: &str, path: ProfilePath) -> PathBuf
pub fn profile_docker_dir(&self, name: &str) -> PathBuf
pub fn profile_dockerfile(&self, name: &str) -> PathBuf
pub fn profile_entrypoint(&self, name: &str) -> PathBuf
pub fn profile_dockerignore(&self, name: &str) -> PathBuf
pub fn profile_compose(&self, name: &str) -> PathBuf
pub fn docker_dir(&self) -> PathBuf
pub fn storage_dir(&self) -> PathBuf
pub fn dockerfile(&self) -> PathBuf
pub fn local_credentials(&self) -> PathBuf
pub fn local_tenants(&self) -> PathBuf
pub fn sessions_dir(&self) -> PathBuf
pub fn exists(&self, path: ProjectPath) -> bool
pub fn profile_exists(&self, name: &str) -> bool
Trait Implementations§
Source§impl Clone for ProjectContext
impl Clone for ProjectContext
Source§fn clone(&self) -> ProjectContext
fn clone(&self) -> ProjectContext
Returns a duplicate of the value. Read more
1.0.0 · 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 ProjectContext
impl RefUnwindSafe for ProjectContext
impl Send for ProjectContext
impl Sync for ProjectContext
impl Unpin for ProjectContext
impl UnwindSafe for ProjectContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more