Trait edgedb_protocol::QueryResult[][src]

pub trait QueryResult: Sealed {
    type State;
    fn prepare(
        ctx: &DescriptorContext<'_>,
        root_pos: TypePos
    ) -> Result<Self::State, Error>;
fn decode(state: &mut Self::State, msg: &Bytes) -> Result<Self, Error>; }
Expand description

A trait represents single result from a query

This is implemented for scalars and tuples. To receive a shape from EdgeDB derive Queryable for a structure, it will automatically implement QueryResult for you.

Associated Types

Required methods

Implementors