pub struct BatchQualification {
pub schema: String,
pub adapter: String,
pub bindings: Bindings,
pub batching: BatchingConfig,
pub bound: AgreementBound,
pub min_cases: u64,
pub stage1: Vec<Stage1Result>,
pub stage2: Option<Stage2>,
pub verdict: Verdict,
}Expand description
A qualification report for one adapter’s batched path.
Its identity is its record digest (spec 004, 3.1.6), since paired answers carry binary64 numbers that canonical bytes refuse.
Fields§
§schema: String§adapter: StringThe adapter qualified, as the host names it.
bindings: Bindings§batching: BatchingConfigThe batching configuration qualified.
bound: AgreementBoundDeclared before stage 2 runs.
min_cases: u64The fewest comparable pairs stage 2 needs; declared before it runs.
stage1: Vec<Stage1Result>Every case run, in Stage1Case order.
stage2: Option<Stage2>Absent until stage 2 has run.
verdict: VerdictImplementations§
Source§impl BatchQualification
impl BatchQualification
Sourcepub fn new(
adapter: &str,
bindings: Bindings,
batching: BatchingConfig,
bound: AgreementBound,
min_cases: u64,
stage1: Vec<Stage1Result>,
stage2: Option<Stage2>,
) -> Result<BatchQualification, BatchQualificationError>
pub fn new( adapter: &str, bindings: Bindings, batching: BatchingConfig, bound: AgreementBound, min_cases: u64, stage1: Vec<Stage1Result>, stage2: Option<Stage2>, ) -> Result<BatchQualification, BatchQualificationError>
A checked report with its verdict derived. stage1 may come in any
order; it is written in Stage1Case order.
Sourcepub fn parse(
bytes: &[u8],
) -> Result<BatchQualification, BatchQualificationError>
pub fn parse( bytes: &[u8], ) -> Result<BatchQualification, BatchQualificationError>
Parse under REPLAY_V1 and check.
Sourcepub fn check(&self) -> Result<(), BatchQualificationError>
pub fn check(&self) -> Result<(), BatchQualificationError>
Every member’s shape, then the recorded verdict against the derived one.
Sourcepub fn agreement(&self) -> Option<(u64, u64)>
pub fn agreement(&self) -> Option<(u64, u64)>
(agreeing, comparable) over stage 2’s pairs; none before it ran.
Sourcepub fn derived_verdict(&self) -> Verdict
pub fn derived_verdict(&self) -> Verdict
The verdict this report supports (3.8 item 3); unknown for a
report whose members do not check.
Trait Implementations§
Source§impl Clone for BatchQualification
impl Clone for BatchQualification
Source§impl Debug for BatchQualification
impl Debug for BatchQualification
Source§impl<'de> Deserialize<'de> for BatchQualification
impl<'de> Deserialize<'de> for BatchQualification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Document for BatchQualification
impl Document for BatchQualification
Source§const SCHEMA: &'static str = BATCH_QUALIFICATION
const SCHEMA: &'static str = BATCH_QUALIFICATION
Source§const LIMITS: ParseLimits = REPLAY_V1
const LIMITS: ParseLimits = REPLAY_V1
Source§fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
Source§fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
Source§fn record_digest(&self) -> Result<ContentDigest, CanonicalError>where
Self: PartialEq,
fn record_digest(&self) -> Result<ContentDigest, CanonicalError>where
Self: PartialEq,
sha256(SCHEMA || 0x00 || record canonical bytes) (spec 004, 3.1.6).
Equal to the identity of an identified document.