pub struct Report {
pub state: State,
pub computed: Option<String>,
pub stored: Option<Value>,
pub payload: Option<Value>,
pub missing: Vec<String>,
pub body_verified: Option<BodyVerified>,
pub conformance: Conformance,
pub conformance_issues: Vec<String>,
pub block_count: usize,
pub reason: Option<String>,
}Expand description
A verification report with lens.py’s keys and semantics.
Fields§
§state: State§computed: Option<String>Recomputed payload hash; None when unreadable.
stored: Option<Value>The stored payload_hash value as found (any JSON type; “” if absent); None when unreadable.
payload: Option<Value>§missing: Vec<String>§body_verified: Option<BodyVerified>None when unreadable.
conformance: Conformance§conformance_issues: Vec<String>§block_count: usize§reason: Option<String>Why the file is unreadable; None otherwise.
Implementations§
Source§impl Report
impl Report
Sourcepub fn unreadable(
reason: String,
block_count: usize,
payload: Option<Value>,
) -> Report
pub fn unreadable( reason: String, block_count: usize, payload: Option<Value>, ) -> Report
An unreadable report, as lens.py’s _unreadable builds it.
pub fn multiple_blocks(&self) -> bool
Sourcepub fn block_used(&self) -> usize
pub fn block_used(&self) -> usize
The block evaluated: always the last one (spec §3.3).
Trait Implementations§
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Forget for Report
impl Freeze for Report
impl Move for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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