#[non_exhaustive]pub struct Fixtures {
pub key_documents: Vec<(String, Vec<u8>)>,
pub descriptors: Vec<(String, Vec<u8>)>,
pub receipts: Vec<(String, Vec<u8>)>,
pub versions: Vec<Version>,
pub slices: SliceFixtures,
}Expand description
What the resolver under test is loaded with. All bytes are canonical JSON (JCS).
Load every descriptor under its fn_hash, every receipt under its hash, and the
versions: for a time-aware resolver (a store), version v says that cell v.cell_id
has, from transaction time v.tx on, the value of receipt v.receipt_hash (which is
v.value), answering as of a time under the kit’s AnswerRule (by default only once
that receipt’s asof is reached too); a resolver holding one value per cell keeps the
latest. Versions are listed in tx order per cell.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key_documents: Vec<(String, Vec<u8>)>Key documents, by host. Verification uses them (see Fixtures::keys); a resolver
does not need them.
descriptors: Vec<(String, Vec<u8>)>Descriptors: function hash, descriptor JSON text.
receipts: Vec<(String, Vec<u8>)>Receipts: receipt hash, receipt JSON text.
versions: Vec<Version>Versions of stored cells, one per loaded receipt of a stored function.
slices: SliceFixturesThe slice fixtures (0.3.4), for a resolver that supplies manifests (Kit::slices).