pub struct UnifiedContext { /* private fields */ }Implementations§
Source§impl UnifiedContext
impl UnifiedContext
pub fn discover() -> Self
pub fn discover_from(start: &Path) -> Self
pub fn with_profile_paths( self, profile_dir: &Path, credentials_path: &str, tenants_path: &str, ) -> Self
pub fn has_project(&self) -> bool
pub fn project_root(&self) -> Option<&Path>
pub fn systemprompt_dir(&self) -> Option<PathBuf>
pub fn credentials_path(&self) -> PathBuf
pub fn tenants_path(&self) -> PathBuf
pub fn session_path(&self) -> PathBuf
pub fn profiles_dir(&self) -> Option<PathBuf>
pub fn profile_dir(&self, name: &str) -> Option<PathBuf>
pub fn docker_dir(&self) -> Option<PathBuf>
pub fn storage_dir(&self) -> Option<PathBuf>
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
pub fn project(&self) -> Option<&DiscoveredProject>
pub fn cloud_paths(&self) -> Option<&CloudPaths>
Trait Implementations§
Source§impl Clone for UnifiedContext
impl Clone for UnifiedContext
Source§fn clone(&self) -> UnifiedContext
fn clone(&self) -> UnifiedContext
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 moreSource§impl Debug for UnifiedContext
impl Debug for UnifiedContext
Auto Trait Implementations§
impl Freeze for UnifiedContext
impl RefUnwindSafe for UnifiedContext
impl Send for UnifiedContext
impl Sync for UnifiedContext
impl Unpin for UnifiedContext
impl UnwindSafe for UnifiedContext
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