#[non_exhaustive]pub enum Answer {
Receipt(Vec<u8>),
NotCovered {
fault: Option<Fault>,
},
Withdrawn {
receipt: Vec<u8>,
reason: String,
},
}Expand description
The answer to “the value of this cell as of A”.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Receipt(Vec<u8>)
The receipt that answers, canonical JSON text: for a stored cell the publisher’s receipt as the store holds it; for a computed cell one signed by the engine.
NotCovered
Nothing answers as of A, and no receipt is given.
fault: None: the function is unknown then, a stored cell has no version answering
then, or a computed cell reads such an input. fault: Some(code): the cell is a
computed cell whose evaluation faulted (SPEC 15.12): it has no value, deterministically
(the envelope’s fault, SPEC 5.5). Since 0.3.0 the variant carries fault.
Withdrawn
The cell is withdrawn as of A (SPEC 8.1, store 0.6.0): a stored cell whose latest
version as of A is a withdrawal. It has no value, and no receipt of one: receipt is
the withdrawal’s canonical bytes (as Resolver::receipt gives them for its hash) and
reason its withdrawn text. Since 0.6.0. A formula reading the cell alone has no
value of it (NotCovered), and nothing is stored for the read.