use crate::coordinate::{CellRef, Range};
#[derive(Debug, Clone, PartialEq, Eq, Default)]
pub struct ScenarioInput {
pub cell: CellRef,
pub value: String,
pub deleted: bool,
pub undone: bool,
pub number_format_id: Option<u32>,
}
#[derive(Debug, Clone, PartialEq, Eq, Default)]
pub struct Scenario {
pub name: String,
pub locked: bool,
pub hidden: bool,
pub user: Option<String>,
pub comment: Option<String>,
pub inputs: Vec<ScenarioInput>,
}
#[derive(Debug, Clone, PartialEq, Eq, Default)]
pub struct Scenarios {
pub list: Vec<Scenario>,
pub current: Option<u32>,
pub show: Option<u32>,
pub result_cells: Vec<Range>,
}
impl Scenarios {
#[must_use]
pub fn is_empty(&self) -> bool {
self.list.is_empty()
}
}