pub struct Config {
pub profile: Option<Profile>,
pub scope: Option<Scope>,
pub fail_on: Option<FailOn>,
pub min_diff_coverage_pct: Option<f64>,
pub max_uncovered_lines: Option<u32>,
pub missing_coverage: Option<MissingBehavior>,
pub missing_file: Option<MissingBehavior>,
pub paths: PathConfig,
pub ignore_config: IgnoreConfig,
pub normalize: NormalizeConfig,
pub output: OutputFeatureConfig,
}Expand description
Full configuration for covguard.
Fields§
§profile: Option<Profile>Configuration profile to use.
scope: Option<Scope>Scope of lines to evaluate.
fail_on: Option<FailOn>Determines when the evaluation should fail.
min_diff_coverage_pct: Option<f64>Minimum diff coverage percentage (0-100).
max_uncovered_lines: Option<u32>Maximum allowed uncovered lines.
missing_coverage: Option<MissingBehavior>How to handle missing coverage data for lines.
missing_file: Option<MissingBehavior>How to handle files with no coverage data.
paths: PathConfigPath filtering configuration.
ignore_config: IgnoreConfigIgnore directive configuration.
normalize: NormalizeConfigPath normalization configuration.
output: OutputFeatureConfigRendering budgets for markdown, annotations, and SARIF output.
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 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