pub struct BatchPayload {
pub queried_against: Vec<BatchQuery>,
pub results: Vec<BatchResult>,
pub self_projects: Option<BTreeSet<ProjectName>>,
pub resolver_coverage: Option<ResolverCoverage>,
pub fingerprint_version: Option<u32>,
}Expand description
Top-level payload of a check batch envelope.
Fields§
§queried_against: Vec<BatchQuery>§results: Vec<BatchResult>§self_projects: Option<BTreeSet<ProjectName>>Projects evaluated as the backport subject itself, excluded from
the tracked-dependency tally. None means the producing binary
predates the field, not “no self project”: a current producer
always emits Some, even when empty, so it is never skipped.
resolver_coverage: Option<ResolverCoverage>Symbol classes this producer checks. A corpus row keeps it so the
fold routes bug-vs-gap against the producing binary, not the one
running the fold. None for a producer that predates the field.
fingerprint_version: Option<u32>The fingerprint generation this producer stamped. Lets a corpus
spanning a bump segregate generations instead of reading an
unexplained zero-match. None for a producer that predates it.
Implementations§
Source§impl BatchPayload
impl BatchPayload
Sourcepub fn clearance(&self, self_projects: &BTreeSet<ProjectName>) -> RoundClearance
pub fn clearance(&self, self_projects: &BTreeSet<ProjectName>) -> RoundClearance
Round-level clearance over these rows, excluding self_projects
from the tracked-dependency tally.
Sourcepub fn producer(&self) -> Producer<'_>
pub fn producer(&self) -> Producer<'_>
The producer generation that wrote self_projects,
resolver_coverage, and fingerprint_version.
Sourcepub fn clearance_self_inferred(&self) -> Option<RoundClearance>
pub fn clearance_self_inferred(&self) -> Option<RoundClearance>
Clearance from the self-projects the producer recorded on the
wire. None when the producer predates the field; the caller
then passes its own set to clearance.