use crate::sql::value::Value; use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)] #[serde(rename_all = "UPPERCASE")] pub enum Status { Ok, Err, } #[derive(Clone, Debug, Default, Eq, PartialEq, Serialize, Deserialize)] pub struct Responses(pub Vec); #[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)] pub struct Response { #[serde(skip_serializing_if = "Option::is_none")] pub sql: Option, pub time: String, pub status: Status, #[serde(skip_serializing_if = "Option::is_none")] pub detail: Option, #[serde(skip_serializing_if = "Option::is_none")] pub result: Option, }