1use serde::Serialize;
2
3#[derive(Debug, Clone)]
4pub struct CellEdit {
5 pub address: String,
6 pub value: String,
7 pub is_formula: bool,
8}
9
10#[derive(Debug, Clone)]
11pub struct CoreWarning {
12 pub code: String,
13 pub message: String,
14}
15
16#[derive(Debug, Serialize)]
17pub struct BasicDiffChange {
18 pub sheet: String,
19 pub address: String,
20 pub change_type: String,
21 pub original_value: Option<String>,
22 pub original_formula: Option<String>,
23 pub modified_value: Option<String>,
24 pub modified_formula: Option<String>,
25}
26
27#[derive(Debug, Serialize)]
28pub struct BasicDiffResponse {
29 pub original: String,
30 pub modified: String,
31 pub change_count: usize,
32 pub changes: Vec<BasicDiffChange>,
33}
34
35#[derive(Debug, Clone)]
36pub struct RecalculateOutcome {
37 pub backend: String,
38 pub duration_ms: u64,
39 pub cells_evaluated: Option<u64>,
40 pub eval_errors: Option<Vec<String>>,
41}