pub trait AppPaths {
Show 19 methods
// Required methods
fn config_dir(&self) -> &PathBuf;
fn data_dir(&self) -> &PathBuf;
// Provided methods
fn settings_path(&self) -> PathBuf { ... }
fn trust_path(&self) -> PathBuf { ... }
fn bundled_dir(&self) -> PathBuf { ... }
fn bundled_manifest_path(&self) -> PathBuf { ... }
fn prompts_dir(&self) -> PathBuf { ... }
fn providers_dir(&self) -> PathBuf { ... }
fn sessions_dir(&self) -> PathBuf { ... }
fn skills_dir(&self) -> PathBuf { ... }
fn worktrees_dir(&self) -> PathBuf { ... }
fn attachments_dir(&self) -> PathBuf { ... }
fn downloads_dir(&self) -> PathBuf { ... }
fn logs_dir(&self) -> PathBuf { ... }
fn vendor_dir(&self) -> PathBuf { ... }
fn metadata_db_path(&self) -> PathBuf { ... }
fn version_path(&self) -> PathBuf { ... }
fn bundled_content_dirs(&self) -> [PathBuf; 4] { ... }
fn standard_required_dirs(&self) -> Vec<PathBuf> { ... }
}Expand description
Common config/data path helpers shared by Elph applications.
Required Methods§
Provided Methods§
fn settings_path(&self) -> PathBuf
fn trust_path(&self) -> PathBuf
fn bundled_dir(&self) -> PathBuf
fn bundled_manifest_path(&self) -> PathBuf
fn prompts_dir(&self) -> PathBuf
fn providers_dir(&self) -> PathBuf
fn sessions_dir(&self) -> PathBuf
fn skills_dir(&self) -> PathBuf
fn worktrees_dir(&self) -> PathBuf
fn attachments_dir(&self) -> PathBuf
fn downloads_dir(&self) -> PathBuf
fn logs_dir(&self) -> PathBuf
fn vendor_dir(&self) -> PathBuf
fn metadata_db_path(&self) -> PathBuf
fn version_path(&self) -> PathBuf
fn bundled_content_dirs(&self) -> [PathBuf; 4]
fn standard_required_dirs(&self) -> Vec<PathBuf>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".