surrealpatch/src/dbs/response.rs

15 lines
412 B
Rust
Raw Normal View History

2021-03-29 15:43:37 +00:00
use crate::sql::literal::Literal;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize, Deserialize)]
pub struct Responses(pub Vec<Response>);
#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
pub struct Response {
pub sql: String,
pub time: String,
pub status: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub result: Option<Literal>,
}