aether_protocol/
response.rs1use crate::types::{BatchResponse, DbStats, Record, RecordSet};
7use serde::{Deserialize, Serialize};
8
9#[derive(Serialize, Deserialize, Debug, PartialEq)]
11pub enum Response {
12 Success,
14 Error(String),
15
16 DatabaseList(Vec<String>),
18 DatabaseCreated(bool),
19 DatabaseDropped(bool),
20
21 CollectionList(Vec<String>),
23 Stats(DbStats),
24 IndexList(Vec<String>),
25
26 Record(Option<Record>),
28 RecordSet(RecordSet),
29 RecordCount(u64),
30 RecordDeleted(bool),
31 LastInsertId(u64),
32 RecordWithRelated(Option<(Record, Record)>),
33 BatchResponse(BatchResponse),
34 RecordIdSet(Vec<String>),
35}