pub struct Scenario {
pub id: ScenarioId,
pub name: Name,
pub overrides: HashMap<(MeasureId, Coordinate), Value>,
}Expand description
A what-if scenario: a named overlay of input-cell overrides on the base
model. Applying it produces a model whose inputs are the base inputs with
these overrides taking precedence; derived measures then recompute normally.
Fields§
§id: ScenarioId§name: Name§overrides: HashMap<(MeasureId, Coordinate), Value>Input-cell overrides: (measure, coordinate) -> value. Only Input
measures are meaningful here; an override on a derived measure is
ignored by the engine (derived cells are computed).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Scenario
impl<'de> Deserialize<'de> for Scenario
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Scenario
Auto Trait Implementations§
impl Freeze 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