pub struct HanseiReport {
pub total_attempts: usize,
pub successes: usize,
pub success_rate: f32,
pub category_summaries: HashMap<ConversionCategory, CategorySummary>,
pub pareto_categories: Vec<ConversionCategory>,
pub trend: Trend,
pub issues: Vec<ConversionIssue>,
pub confidence_interval: WilsonScore,
}Expand description
Hansei (reflection) report for conversion batch
Implements Toyota Way principle of systematic reflection.
Fields§
§total_attempts: usizeTotal conversions attempted
successes: usizeSuccessful conversions
success_rate: f32Overall success rate
category_summaries: HashMap<ConversionCategory, CategorySummary>Category-wise breakdown
pareto_categories: Vec<ConversionCategory>Pareto categories (20% causing 80% of failures)
trend: TrendOverall trend
issues: Vec<ConversionIssue>Actionable issues sorted by priority
confidence_interval: WilsonScoreWilson confidence interval on success rate
Implementations§
Source§impl HanseiReport
impl HanseiReport
Sourcepub fn from_results(results: &[(ConversionCategory, bool)]) -> HanseiReport
pub fn from_results(results: &[(ConversionCategory, bool)]) -> HanseiReport
Create Hansei report from conversion results
Sourcepub fn empty() -> HanseiReport
pub fn empty() -> HanseiReport
Create empty report
Sourcepub fn andon_level(&self, target: f32) -> AndonLevel
pub fn andon_level(&self, target: f32) -> AndonLevel
Get Andon level for overall success rate
Trait Implementations§
Source§impl Clone for HanseiReport
impl Clone for HanseiReport
Source§fn clone(&self) -> HanseiReport
fn clone(&self) -> HanseiReport
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 moreAuto Trait Implementations§
impl Freeze for HanseiReport
impl RefUnwindSafe for HanseiReport
impl Send for HanseiReport
impl Sync for HanseiReport
impl Unpin for HanseiReport
impl UnsafeUnpin for HanseiReport
impl UnwindSafe for HanseiReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more