pub struct HealthActionContext {
pub opts: HealthActionOptions,
pub max_cyclomatic_threshold: u16,
pub max_cognitive_threshold: u16,
pub max_crap_threshold: f64,
pub crap_refactor_band: u16,
}Expand description
Construction-time context for HealthFinding::with_actions.
Fields§
§opts: HealthActionOptionsAction-emission options.
max_cyclomatic_threshold: u16Cyclomatic-complexity ceiling.
max_cognitive_threshold: u16Cognitive-complexity ceiling.
max_crap_threshold: f64CRAP ceiling.
crap_refactor_band: u16Band below max_cyclomatic_threshold where a CRAP-only finding also
gets a secondary refactor-function action.
Trait Implementations§
Source§impl Clone for HealthActionContext
impl Clone for HealthActionContext
impl Copy for HealthActionContext
Auto Trait Implementations§
impl Freeze for HealthActionContext
impl RefUnwindSafe for HealthActionContext
impl Send for HealthActionContext
impl Sync for HealthActionContext
impl Unpin for HealthActionContext
impl UnsafeUnpin for HealthActionContext
impl UnwindSafe for HealthActionContext
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