pub struct FileConfig {
pub threshold: Option<f64>,
pub preset: Option<ThresholdPreset>,
pub metric: Option<ComplexityMetric>,
pub src: Option<PathBuf>,
pub exclude: Option<Vec<String>>,
pub overrides: Vec<ThresholdOverride>,
pub views: HashMap<String, ViewPreset>,
}Expand description
Parsed configuration from a TOML file.
All fields are optional — missing fields mean “use CLI default.” The CLI layer merges this with command-line flags.
Fields§
§threshold: Option<f64>§preset: Option<ThresholdPreset>§metric: Option<ComplexityMetric>§src: Option<PathBuf>§exclude: Option<Vec<String>>§overrides: Vec<ThresholdOverride>§views: HashMap<String, ViewPreset>Saved view presets keyed by preset name (issue #80).
Each [views.<name>] block in TOML deserializes into a
ViewPreset; the CLI layer resolves --view <name> against
this map and folds preset values into Cli before
build_view_spec.
Trait Implementations§
Source§impl Clone for FileConfig
impl Clone for FileConfig
Source§fn clone(&self) -> FileConfig
fn clone(&self) -> FileConfig
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 FileConfig
impl Debug for FileConfig
Source§impl Default for FileConfig
impl Default for FileConfig
Source§fn default() -> FileConfig
fn default() -> FileConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FileConfig
impl RefUnwindSafe for FileConfig
impl Send for FileConfig
impl Sync for FileConfig
impl Unpin for FileConfig
impl UnsafeUnpin for FileConfig
impl UnwindSafe for FileConfig
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