pub struct RuntimePaths {
pub config_dir: PathBuf,
pub data_dir: PathBuf,
pub state_dir: PathBuf,
pub cache_dir: PathBuf,
pub log_dir: PathBuf,
pub temp_dir: PathBuf,
pub runtime_dir: PathBuf,
pub service_dir: PathBuf,
}Expand description
Resolved runtime directories used by CLI, Web, services, and future workers.
Fields§
§config_dir: PathBuf§data_dir: PathBuf§state_dir: PathBuf§cache_dir: PathBuf§log_dir: PathBuf§temp_dir: PathBuf§runtime_dir: PathBuf§service_dir: PathBufImplementations§
Source§impl RuntimePaths
impl RuntimePaths
Sourcepub fn resolve(
environment: &PlatformEnvironment,
overrides: &PathEnvOverrides,
) -> Result<Self, PathError>
pub fn resolve( environment: &PlatformEnvironment, overrides: &PathEnvOverrides, ) -> Result<Self, PathError>
Resolves platform defaults and relay-specific overrides into absolute paths.
Sourcepub fn agent_audit_log_file(&self) -> PathBuf
pub fn agent_audit_log_file(&self) -> PathBuf
Returns the JSONL audit log owned by resident agent protocol adapters.
Sourcepub fn model_profiles_file(&self) -> PathBuf
pub fn model_profiles_file(&self) -> PathBuf
Returns the model provider profile configuration file.
Sourcepub fn model_fallback_file(&self) -> PathBuf
pub fn model_fallback_file(&self) -> PathBuf
Returns the model provider fallback-policy configuration file.
Sourcepub fn model_catalog_cache_file(&self) -> PathBuf
pub fn model_catalog_cache_file(&self) -> PathBuf
Returns the cached public model catalog file.
Trait Implementations§
Source§impl Clone for RuntimePaths
impl Clone for RuntimePaths
Source§fn clone(&self) -> RuntimePaths
fn clone(&self) -> RuntimePaths
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 moreSource§impl Debug for RuntimePaths
impl Debug for RuntimePaths
Source§impl PartialEq for RuntimePaths
impl PartialEq for RuntimePaths
Source§fn eq(&self, other: &RuntimePaths) -> bool
fn eq(&self, other: &RuntimePaths) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RuntimePaths
impl StructuralPartialEq for RuntimePaths
Auto Trait Implementations§
impl Freeze for RuntimePaths
impl RefUnwindSafe for RuntimePaths
impl Send for RuntimePaths
impl Sync for RuntimePaths
impl Unpin for RuntimePaths
impl UnsafeUnpin for RuntimePaths
impl UnwindSafe for RuntimePaths
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