pub struct VerificationReport {
pub body_hash_ok: bool,
pub signature_ok: bool,
pub schema_ok: bool,
pub data_ref_embedded: Vec<Result<usize, AcdpError>>,
pub data_ref_external: Vec<Option<Result<usize, AcdpError>>>,
}Expand description
Structured diagnostic outcome from VerifiedContext::fetch_report.
Top-level booleans report the per-stage outcome of the verification
pipeline. Per-DataRef slots track outcomes for each entry in
body.data_refs, in declaration order:
data_ref_embedded[i]—Ok(decoded_size_bytes)when the embedded payload’scontent_hashmatched;Errwhen it didn’t (or the embedded was malformed). Refs without an embedded payload or without a declaredcontent_hashproduceOk(0).data_ref_external[i]—Nonewhen no external fetch was attempted (either nolocationor nofetcherwas provided);Some(Ok(bytes_len))when the fetch + hash succeeded;Some(Err(_))on any failure (SSRF rejection, hash mismatch, timeout, …).
AcdpError doesn’t implement Clone, so the report is move-only.
Fields§
§body_hash_ok: boolcontent_hash recomputed from the body matches the declared one.
signature_ok: boolThe producer signature verified against the resolved DID key.
schema_ok: boolvalidate_body passed (or was disabled by policy).
data_ref_embedded: Vec<Result<usize, AcdpError>>Per-DataRef embedded-hash outcome, in body.data_refs order.
data_ref_external: Vec<Option<Result<usize, AcdpError>>>Per-DataRef external-fetch outcome, in body.data_refs order.
None indicates “not attempted” (no fetcher provided or no
location to fetch from).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VerificationReport
impl RefUnwindSafe for VerificationReport
impl Send for VerificationReport
impl Sync for VerificationReport
impl Unpin for VerificationReport
impl UnsafeUnpin for VerificationReport
impl UnwindSafe for VerificationReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more