Struct SelectTwoModel  
pub struct SelectTwoModel<M, N>where
    M: FromQueryResult,
    N: FromQueryResult,{
    model: PhantomData<(M, N)>,
}Expand description
Defines a type to get two Models
Fields§
§model: PhantomData<(M, N)>Trait Implementations§
§impl<M, N> Clone for SelectTwoModel<M, N>
 
impl<M, N> Clone for SelectTwoModel<M, N>
§fn clone(&self) -> SelectTwoModel<M, N>
 
fn clone(&self) -> SelectTwoModel<M, N>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read more§impl<M, N> Debug for SelectTwoModel<M, N>
 
impl<M, N> Debug for SelectTwoModel<M, N>
§impl<M, N> SelectorTrait for SelectTwoModel<M, N>where
    M: FromQueryResult,
    N: FromQueryResult,
 
impl<M, N> SelectorTrait for SelectTwoModel<M, N>where
    M: FromQueryResult,
    N: FromQueryResult,
type Item = (M, Option<N>)
§fn from_raw_query_result(
    res: QueryResult,
) -> Result<<SelectTwoModel<M, N> as SelectorTrait>::Item, DbErr>
 
fn from_raw_query_result( res: QueryResult, ) -> Result<<SelectTwoModel<M, N> as SelectorTrait>::Item, DbErr>
The method to perform a query on a Model
Auto Trait Implementations§
impl<M, N> Freeze for SelectTwoModel<M, N>
impl<M, N> RefUnwindSafe for SelectTwoModel<M, N>where
    M: RefUnwindSafe,
    N: RefUnwindSafe,
impl<M, N> Send for SelectTwoModel<M, N>
impl<M, N> Sync for SelectTwoModel<M, N>
impl<M, N> Unpin for SelectTwoModel<M, N>
impl<M, N> UnwindSafe for SelectTwoModel<M, N>where
    M: UnwindSafe,
    N: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
 
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more