pub trait Resolvable<'r, 'q>: QueryComponent
where 'q: 'r,
{ type Output; // Required method fn qi(&self) -> &'r QueryInterface<'q>; // Provided methods fn exec(self) -> Result<(), Error> where Self: Sized { ... } fn one(self) -> Result<Option<WithID<Self::Output>>, Error> where Self: Sized, Self::Output: Entity { ... } fn one_id(self) -> Result<Option<Self::Output>, Error> where Self: Sized, Self::Output: EntityID { ... } fn all(self) -> Result<Vec<WithID<Self::Output>>, Error> where Self: Sized, Self::Output: Entity { ... } fn all_ids(self) -> Result<Vec<Self::Output>, Error> where Self: Sized, Self::Output: EntityID { ... } fn no_result(self) -> Result<(), Error> where Self: Sized { ... } fn result(self) -> Result<Option<WithID<Self::Output>>, Error> where Self: Sized, Self::Output: Entity { ... } fn id_result(self) -> Result<Option<Self::Output>, Error> where Self: Sized, Self::Output: EntityID { ... } fn results(self) -> Result<Vec<WithID<Self::Output>>, Error> where Self: Sized, Self::Output: Entity { ... } fn id_results(self) -> Result<Vec<Self::Output>, Error> where Self: Sized, Self::Output: EntityID { ... } }
Expand description

Any query that can be completed/executed

Required Associated Types§

Required Methods§

source

fn qi(&self) -> &'r QueryInterface<'q>

Provided Methods§

source

fn exec(self) -> Result<(), Error>
where Self: Sized,

source

fn one(self) -> Result<Option<WithID<Self::Output>>, Error>
where Self: Sized, Self::Output: Entity,

source

fn one_id(self) -> Result<Option<Self::Output>, Error>
where Self: Sized, Self::Output: EntityID,

source

fn all(self) -> Result<Vec<WithID<Self::Output>>, Error>
where Self: Sized, Self::Output: Entity,

source

fn all_ids(self) -> Result<Vec<Self::Output>, Error>
where Self: Sized, Self::Output: EntityID,

source

fn no_result(self) -> Result<(), Error>
where Self: Sized,

source

fn result(self) -> Result<Option<WithID<Self::Output>>, Error>
where Self: Sized, Self::Output: Entity,

source

fn id_result(self) -> Result<Option<Self::Output>, Error>
where Self: Sized, Self::Output: EntityID,

source

fn results(self) -> Result<Vec<WithID<Self::Output>>, Error>
where Self: Sized, Self::Output: Entity,

source

fn id_results(self) -> Result<Vec<Self::Output>, Error>
where Self: Sized, Self::Output: EntityID,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'r, 'q, O, F: Filterable<'r, 'q, Output = O>, C: EntityColumn, G: Modelable + ?Sized> Resolvable<'r, 'q> for Filter<'r, 'q, F, C, G>
where <F as StaticVersion>::Is: Filterable<'static, 'static>, 'q: 'r,

§

type Output = O

source§

impl<'r, 'q, S: Settable<'r, 'q>, C: EntityColumn, G: Modelable + ?Sized> Resolvable<'r, 'q> for Set<'r, 'q, S, C, G>
where <S as StaticVersion>::Is: Settable<'static, 'static>, 'q: 'r,

§

type Output = ()

source§

impl<'r, 'q, T: Entity> Resolvable<'r, 'q> for Delete<'r, 'q, T>

§

type Output = ()

source§

impl<'r, 'q, T: Entity> Resolvable<'r, 'q> for Select<'r, 'q, T>

§

type Output = T

source§

impl<'r, 'q, T: Entity> Resolvable<'r, 'q> for SelectID<'r, 'q, T>

§

type Output = <T as Entity>::ID

source§

impl<'r, 'q, T: Entity> Resolvable<'r, 'q> for Entire<'r, 'q, T>

§

type Output = ()

source§

impl<'r, 'q, T: Entity> Resolvable<'r, 'q> for Update<'r, 'q, T>

§

type Output = ()