use serde::Deserialize; use serde_json::Value; #[derive(Deserialize)] pub(crate) struct QueryInput { pub profile_name: String, pub sql: String, #[serde(default = "default_max_rows")] pub max_rows: u32, pub chart_type: String, } fn default_max_rows() -> u32 { 1000 } #[derive(Deserialize)] pub(crate) struct CatalogInput { pub profile_name: String, } /// One entry of the profile `