#[non_exhaustive]pub struct Version {
pub cell_id: String,
pub tx: String,
pub receipt_hash: String,
pub asof: String,
pub withdrawn: bool,
pub recorded: String,
pub seq: i64,
}Expand description
A version of a cell: from transaction time tx on, the cell’s value is that of the
receipt receipt_hash, which states it as of asof.
A stored version (Store::put_version) or a computed one (Store::put_computed).
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.cell_id: StringThe cell id.
tx: StringThe transaction time (an instant, SPEC 3.3).
receipt_hash: StringThe receipt stating the value.
asof: StringThe receipt’s asof (an instant; never earlier than tx). Since 0.2.0.
withdrawn: boolWhether the receipt is a withdrawal (8.1): the cell has no value from asof on. Since
0.6.0; always false for a computed version.
recorded: StringThe instant the store recorded the version at (CONTRACT-guard-patch G9): the greater of
tx and the store’s recording clock, or tx when the store has none. Every as-of
answer is by this time; a computed version’s is its tx. Since 0.6.5.
seq: i64The insertion sequence of the version: assigned by the store at insert (through put_version
and put_cells), only increasing, never updated; withdrawals included. A computed version’s
is 0. Since 0.6.5 (G3, “inserted since”; see Store::slice_seq).