Skip to main content

CheckPayload

Struct CheckPayload 

Source
pub struct CheckPayload {
    pub queried_against: QueriedAgainst,
    pub results: SeriesVerdict,
    pub diagnostics: Diagnostics,
    pub project_suggestions: Vec<ProjectSuggestion>,
    pub pr_commits: Option<Vec<PrCommit>>,
    pub self_projects: Option<BTreeSet<ProjectName>>,
    pub verdict_fingerprint: Option<VerdictFingerprint>,
    pub resolver_coverage: Option<ResolverCoverage>,
    pub fingerprint_version: Option<u32>,
    pub apply: Option<ApplyForecast>,
    pub target_findings: Option<TargetFindings>,
}
Expand description

The parsed payload of every check-family verb.

Fields§

§queried_against: QueriedAgainst

What the verb was queried against (a series or a pin).

§results: SeriesVerdict

Per-pin verdicts plus summary.

§diagnostics: Diagnostics

Series-wide diagnostics (untracked calls, suggested suites).

§project_suggestions: Vec<ProjectSuggestion>

Projects the untracked-call analysis suggests adding.

§pr_commits: Option<Vec<PrCommit>>

Inner PR-branch commits for 2-parent merge inputs, None for everything else. The None vs Some(vec![]) distinction is part of the wire contract, so no skip_serializing_if.

§self_projects: Option<BTreeSet<ProjectName>>

Projects excluded from the tracked-dependency tally. Always emitted so a consumer can tell an empty set from an old binary.

§verdict_fingerprint: Option<VerdictFingerprint>

Stable join key for this verdict, omitted for inputs with no cache key (patch, range, PR, or an unresolvable pin).

§resolver_coverage: Option<ResolverCoverage>

Symbol classes this binary checks, for the measurement fold. Always emitted so a consumer tells it from an old binary.

§fingerprint_version: Option<u32>

The fingerprint generation this binary stamped. Always emitted.

§apply: Option<ApplyForecast>

Apply-axis prediction. Absent when no target context was supplied: the axis was not evaluated, never “clean”.

§target_findings: Option<TargetFindings>

Symbol-axis target findings, None when no target context.

Implementations§

Source§

impl CheckPayload

Source

pub fn view(&self) -> SeriesEvaluationView<'_>

A borrowed view exposing every query and finding accessor. The same view is reachable from a batch row via BatchResult::evaluation, so both check paths read alike.

Source

pub fn tracked_refs(&self) -> Option<u32>

Self-excluded tracked-dependency count from the wire-recorded self-projects. None when the producer predates the field.

Source

pub fn worst_verdict(&self) -> AggregateVerdict

Source

pub fn has_blocking_reason(&self) -> bool

Source

pub fn pins_in(&self, verdict: VerdictKind) -> impl Iterator<Item = &PinVerdict>

Source

pub fn reasons_for(&self, pin: &Pin) -> impl Iterator<Item = &Reason>

Source

pub fn pin_by_project(&self, project: &ProjectName) -> Option<&PinVerdict>

Source

pub fn missing_test_modules( &self, ) -> &BTreeMap<RelativePath, BTreeMap<ModuleName, usize>>

Source

pub fn test_module_symbol_missing( &self, ) -> impl Iterator<Item = TestModuleSymbolMissingFinding<'_>>

Source

pub fn header_file_missing( &self, ) -> impl Iterator<Item = HeaderFileMissingFinding<'_>>

Source

pub fn behaviour_module_missing( &self, ) -> impl Iterator<Item = BehaviourModuleMissingFinding<'_>>

Source

pub fn versioned_machine_snapshot_missing( &self, ) -> impl Iterator<Item = VersionedMachineSnapshotMissingFinding<'_>>

Source

pub fn wire_constant_bindings_missing( &self, ) -> impl Iterator<Item = WireConstantBindingsMissingFinding<'_>>

Trait Implementations§

Source§

impl Clone for CheckPayload

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CheckPayload

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CheckPayload

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for CheckPayload

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more