1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use crate::{EdgeResult, ToEdgeQl, ToEdgeShape};
use serde::Deserialize;
const STRUCT_ID: &str = "{ id }";
#[derive(Default, Deserialize)]
pub struct BasicResult {
pub id: String,
}
impl ToEdgeShape for BasicResult {
fn shape() -> String {
String::default()
}
}
impl ToEdgeQl for BasicResult {
fn to_edgeql(&self) -> String {
STRUCT_ID.to_owned()
}
}
impl EdgeResult for BasicResult {
fn returning_fields() -> Vec<&'static str> {
vec![]
}
}