#[non_exhaustive]pub struct ScenarioAnswer {
pub cell: Cell,
pub ty: Type,
pub value: Scalar,
pub asof: String,
pub overrides: Vec<ScenarioOverride>,
pub solved: Option<(Cell, Scalar)>,
}Expand description
A scenario’s answer (Engine::whatif): the value of the cell as of the asof, with the
overrides in place. It is labelled a scenario: it has no receipt and is never stored.
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.cell: CellThe cell asked for.
ty: TypeIts type (the function’s return type).
value: ScalarIts value in the scenario.
asof: StringThe asof: the one asked for, else the clock’s now.
overrides: Vec<ScenarioOverride>The overrides, sorted by ScenarioOverride::id.
solved: Option<(Cell, Scalar)>The solved cell and the value found for it, when the request had a solve.
Trait Implementations§
Source§impl Clone for ScenarioAnswer
impl Clone for ScenarioAnswer
Source§impl Debug for ScenarioAnswer
impl Debug for ScenarioAnswer
Source§impl PartialEq for ScenarioAnswer
impl PartialEq for ScenarioAnswer
impl StructuralPartialEq for ScenarioAnswer
Auto Trait Implementations§
impl Forget for ScenarioAnswer
impl Freeze for ScenarioAnswer
impl Move for ScenarioAnswer
impl RefUnwindSafe for ScenarioAnswer
impl Send for ScenarioAnswer
impl Sync for ScenarioAnswer
impl Unpin for ScenarioAnswer
impl UnsafeUnpin for ScenarioAnswer
impl UnwindSafe for ScenarioAnswer
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