#[derive(EdgedbResult)]
{
    // Attributes available to this derive:
    #[field]
    #[back_link]
}
Expand description

EdgedbResult creates implementations of following traits for the annotated struct :

  • edgedb_query::ToEdgeShape
  • edgedb_query::ToEdgeScalar

Usage

 #[derive(Default, EdgedbResult)]
 pub struct UserResult {
    pub id: String,
    pub name: String,
}