pub struct DiscoveredProject { /* private fields */ }Implementations§
Source§impl DiscoveredProject
impl DiscoveredProject
pub fn discover() -> Option<Self>
pub fn discover_from(start: &Path) -> Option<Self>
pub fn from_root(root: PathBuf) -> Self
pub fn root(&self) -> &Path
pub fn systemprompt_dir(&self) -> &Path
pub fn credentials_path(&self) -> PathBuf
pub fn tenants_path(&self) -> PathBuf
pub fn session_path(&self) -> PathBuf
pub fn sessions_dir(&self) -> PathBuf
pub fn profiles_dir(&self) -> PathBuf
pub fn profile_dir(&self, name: &str) -> PathBuf
pub fn profile_config(&self, name: &str) -> PathBuf
pub fn profile_secrets(&self, name: &str) -> PathBuf
pub fn docker_dir(&self) -> PathBuf
pub fn storage_dir(&self) -> PathBuf
pub fn is_initialized(&self) -> bool
pub fn has_credentials(&self) -> bool
pub fn has_tenants(&self) -> bool
pub fn has_session(&self) -> bool
pub fn has_profile(&self, name: &str) -> bool
Trait Implementations§
Source§impl Clone for DiscoveredProject
impl Clone for DiscoveredProject
Source§fn clone(&self) -> DiscoveredProject
fn clone(&self) -> DiscoveredProject
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 DiscoveredProject
impl RefUnwindSafe for DiscoveredProject
impl Send for DiscoveredProject
impl Sync for DiscoveredProject
impl Unpin for DiscoveredProject
impl UnwindSafe for DiscoveredProject
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