#[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>,
}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); 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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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.
Implementations§
Trait Implementations§
impl Eq for Fixtures
impl StructuralPartialEq for Fixtures
Auto Trait Implementations§
impl Freeze for Fixtures
impl RefUnwindSafe for Fixtures
impl Send for Fixtures
impl Sync for Fixtures
impl Unpin for Fixtures
impl UnsafeUnpin for Fixtures
impl UnwindSafe for Fixtures
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