use serde::{Deserialize, Serialize};
use std::collections::BTreeMap;
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct ShapeContract {
#[serde(default)]
pub shapes: BTreeMap<String, ShapeExpr>,
#[serde(default)]
pub constraints: Vec<String>,
#[serde(default)]
pub from_contract: Option<String>,
#[serde(default)]
pub from_equation: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ShapeExpr {
pub dims: Vec<String>,
#[serde(default)]
pub dtype: Option<String>,
}