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
28
29
use crate::{EdgeResult, ToEdgeQl, ToEdgeShape};
use edgedb_derive::Queryable;
use uuid::Uuid;
const STRUCT_ID: &str = "{ id }";
#[derive(Default, Queryable)]
pub struct BasicResult {
pub id: Uuid,
}
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![]
}
}