SelectorTrait

Trait SelectorTrait 

Source
pub trait SelectorTrait {
    type Item: Sized;

    // Required method
    fn from_raw_query_result(res: QueryResult) -> Result<Self::Item, DbErr>;
}
Expand description

A Trait for any type that can perform SELECT queries

Required Associated Typesยง

Required Methodsยง

Source

fn from_raw_query_result(res: QueryResult) -> Result<Self::Item, DbErr>

The method to perform a query on a Model

Dyn Compatibilityยง

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementorsยง

Sourceยง

impl<M> SelectorTrait for SelectModel<M>

Sourceยง

impl<M, N> SelectorTrait for SelectTwoModel<M, N>

Sourceยง

type Item = (M, Option<N>)

Sourceยง

impl<M, N, O> SelectorTrait for SelectThreeModel<M, N, O>

Sourceยง

type Item = (M, Option<N>, Option<O>)

Sourceยง

impl<M, N, O, P> SelectorTrait for SelectFourModel<M, N, O, P>

Sourceยง

type Item = (M, Option<N>, Option<O>, Option<P>)

Sourceยง

impl<M, N, O, P, Q> SelectorTrait for SelectFiveModel<M, N, O, P, Q>

Sourceยง

type Item = (M, Option<N>, Option<O>, Option<P>, Option<Q>)

Sourceยง

impl<M, N, O, P, Q, R> SelectorTrait for SelectSixModel<M, N, O, P, Q, R>

Sourceยง

type Item = (M, Option<N>, Option<O>, Option<P>, Option<Q>, Option<R>)

Sourceยง

impl<T> SelectorTrait for SelectGetableTuple<T>
where T: TryGetableMany,

Sourceยง

impl<T, C> SelectorTrait for SelectGetableValue<T, C>