Classify a loaded attestation into the `attested` column token.
(attested: &bridge::Attestation)
| 220 | |
| 221 | /// Classify a loaded attestation into the `attested` column token. |
| 222 | fn classify(attested: &bridge::Attestation) -> Attested { |
| 223 | match attested { |
| 224 | bridge::Attestation::Fresh(_) => Attested::Fresh, |
| 225 | bridge::Attestation::Stale(_) => Attested::Stale, |
| 226 | bridge::Attestation::None => Attested::None, |
| 227 | } |
| 228 | } |
| 229 | |
| 230 | /// Compute one intent's row. A read/lift/attestation failure for a SINGLE intent |
| 231 | /// degrades that row's attested/verifies to `–` rather than aborting the whole |