1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use crate::{ToEdgeQl, ToEdgeShape};
use serde::Deserialize;
const STRUCT_ID: &'static str = "{ id }";

/// BasicResult represents the default edgeDB query result
#[derive(Default, Deserialize)]
pub struct BasicResult {
    pub id: String,
}

impl ToEdgeShape for BasicResult {
    fn shape() -> String {
        STRUCT_ID.to_owned()
    }
}

impl ToEdgeQl for BasicResult {
    fn to_edgeql(&self) -> String {
        STRUCT_ID.to_owned()
    }
}