pub struct PrismConfig {
pub storage: StorageConfig,
pub backend: BackendConfig,
pub embedding: EmbeddingConfig,
pub analysis: AnalysisConfig,
pub workspace: WorkspaceConfig,
pub logging: LoggingConfig,
}Expand description
Root configuration for CodePrism.
Represents the fully merged configuration from all sources.
Fields§
§storage: StorageConfigStorage configuration
backend: BackendConfigBackend configuration
embedding: EmbeddingConfigEmbedding provider configuration
analysis: AnalysisConfigAnalysis configuration
workspace: WorkspaceConfigWorkspace configuration
logging: LoggingConfigLogging configuration
Implementations§
Source§impl PrismConfig
impl PrismConfig
Sourcepub fn apply_overrides(&mut self, overrides: &ConfigOverrides)
pub fn apply_overrides(&mut self, overrides: &ConfigOverrides)
Apply CLI overrides to this configuration.
Sourcepub fn validate(&self) -> Result<(), ConfigError>
pub fn validate(&self) -> Result<(), ConfigError>
Validate the configuration.
Checks that all required settings exist for the selected providers.
Sourcepub fn prism_dir(&self, workspace_root: &Path) -> PathBuf
pub fn prism_dir(&self, workspace_root: &Path) -> PathBuf
Get the effective CodePrysm directory for a workspace.
Sourcepub fn graph_path(&self, workspace_root: &Path) -> PathBuf
pub fn graph_path(&self, workspace_root: &Path) -> PathBuf
Get the graph file path for a workspace.
Trait Implementations§
Source§impl Clone for PrismConfig
impl Clone for PrismConfig
Source§fn clone(&self) -> PrismConfig
fn clone(&self) -> PrismConfig
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 PrismConfig
impl Debug for PrismConfig
Source§impl Default for PrismConfig
impl Default for PrismConfig
Source§fn default() -> PrismConfig
fn default() -> PrismConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrismConfigwhere
PrismConfig: Default,
impl<'de> Deserialize<'de> for PrismConfigwhere
PrismConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PrismConfig
impl RefUnwindSafe for PrismConfig
impl Send for PrismConfig
impl Sync for PrismConfig
impl Unpin for PrismConfig
impl UnwindSafe for PrismConfig
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