pub struct Config {
pub general: GeneralConfig,
pub filtering: FilteringConfig,
pub analysis: AnalysisConfig,
pub scoring: ScoringConfig,
pub performance: PerformanceConfig,
pub git: GitConfig,
pub features: FeatureFlags,
pub output: OutputConfig,
}Expand description
Main configuration structure for Scribe
Fields§
§general: GeneralConfigGeneral settings
filtering: FilteringConfigFile filtering configuration
analysis: AnalysisConfigAnalysis configuration
scoring: ScoringConfigScoring configuration
performance: PerformanceConfigPerformance and resource limits
git: GitConfigGit integration settings
features: FeatureFlagsFeature flags
output: OutputConfigOutput format configuration
Implementations§
Source§impl Config
impl Config
Sourcepub fn load_from_file<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn load_from_file<P: AsRef<Path>>(path: P) -> Result<Self>
Load configuration from a file
Sourcepub fn merge_with(self, other: Config) -> Self
pub fn merge_with(self, other: Config) -> Self
Merge with another configuration (other takes priority)
Sourcepub fn compute_hash(&self) -> String
pub fn compute_hash(&self) -> String
Create a configuration hash for cache invalidation This is now highly optimized using direct hashing instead of JSON serialization
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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 Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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