pub struct Config {
pub user: UserConfig,
pub rules: RuleConfig,
pub corrections: HashMap<String, String>,
pub capco: CapcoConfig,
/* private fields */
}Expand description
Resolved, merged configuration ready for engine use.
Fields§
§user: UserConfig§rules: RuleConfig§corrections: HashMap<String, String>Organization-specific typo corrections from [corrections] in .marque.toml.
Do not mutate after passing to Engine::new — the engine caches
this as an Arc<HashMap> at construction time. Post-construction
mutation leaves the cached copy stale.
capco: CapcoConfigImplementations§
Source§impl Config
impl Config
Sourcepub fn confidence_threshold(&self) -> f32
pub fn confidence_threshold(&self) -> f32
Returns the confidence threshold for auto-applying fixes.
Sourcepub fn set_confidence_threshold(
&mut self,
value: f32,
) -> Result<(), ConfigError>
pub fn set_confidence_threshold( &mut self, value: f32, ) -> Result<(), ConfigError>
Set confidence threshold (validated at load time).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin 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