pub fn decode_peer_result(
input: &str,
era: ResultPeerEra,
policy: &dyn ResultDiscriminatorPolicy,
) -> Result<(DecodedResult, Option<ResultPeerDiagnostic>), ResultDecodeError>Expand description
Decodes one peer result through the public result codec.
A final peer must provide resultType, but peer ingestion preserves the
pinned compatibility rule by decoding an absent discriminator as
complete in either era. A modern omission receives a bounded diagnostic;
locally authored modern results still emit resultType: "complete".
Explicit null and non-string discriminators are rejected instead of
conflating them with absence.