pub trait PhaseBucketClaim {
// Required methods
fn claim_step_index<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, u16>;
fn claim_label<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, String>;
fn claim_start_ms<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, u64>;
fn claim_end_ms<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, u64>;
fn claim_sample_count<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, usize>;
}Expand description
Pointwise-claim accessors generated by #[derive(Claim)] on PhaseBucket. One claim_<field> method per public field, taking &mut Verdict as the accumulator; container fields (BTreeSet/Vec) route through SetClaim/SeqClaim. Method dispatch keys on the stats struct’s type, so identical field names across distinct stats structs do not collide. For prelude-exported stats types the trait is preluded, so use ktstr::prelude::* brings the accessors into scope; otherwise import the trait from the stats type’s module.