#[non_exhaustive]pub struct Scenario { /* private fields */ }Expand description
A scenario (5.9; spec-0.6.0): the value a cell would have under overrides. It is a
statement of what-if, never a receipt: it has no signer, no trust and no hash, and cannot be
turned into one. Built with Scenario::new and checked back by check_answer against
the request.
Implementations§
Source§impl Scenario
impl Scenario
Sourcepub fn new(
cell: Cell,
value: Scalar,
asof: &str,
overrides: &Value,
) -> Result<Scenario>
pub fn new( cell: Cell, value: Scalar, asof: &str, overrides: &Value, ) -> Result<Scenario>
A scenario of cell with value, as of asof (an instant), under overrides (the
canonical array: value overrides and slice overrides, sorted by cell or slice id, at most
64). E_ENVELOPE for anything else.
Trait Implementations§
impl Eq for Scenario
impl StructuralPartialEq for Scenario
Auto Trait Implementations§
impl Forget for Scenario
impl Freeze for Scenario
impl Move for Scenario
impl RefUnwindSafe for Scenario
impl Send for Scenario
impl Sync for Scenario
impl Unpin for Scenario
impl UnsafeUnpin for Scenario
impl UnwindSafe for Scenario
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