Struct SelectModel  
pub struct SelectModel<M>where
    M: FromQueryResult,{
    model: PhantomData<M>,
}Expand description
Defines a type to get a Model
Fields§
§model: PhantomData<M>Trait Implementations§
§impl<M> Debug for SelectModel<M>where
    M: Debug + FromQueryResult,
 
impl<M> Debug for SelectModel<M>where
    M: Debug + FromQueryResult,
§impl<M> SelectorTrait for SelectModel<M>where
    M: FromQueryResult,
 
impl<M> SelectorTrait for SelectModel<M>where
    M: FromQueryResult,
type Item = M
§fn from_raw_query_result(
    res: QueryResult,
) -> Result<<SelectModel<M> as SelectorTrait>::Item, DbErr>
 
fn from_raw_query_result( res: QueryResult, ) -> Result<<SelectModel<M> as SelectorTrait>::Item, DbErr>
The method to perform a query on a Model
Auto Trait Implementations§
impl<M> Freeze for SelectModel<M>
impl<M> RefUnwindSafe for SelectModel<M>where
    M: RefUnwindSafe,
impl<M> Send for SelectModel<M>where
    M: Send,
impl<M> Sync for SelectModel<M>where
    M: Sync,
impl<M> Unpin for SelectModel<M>where
    M: Unpin,
impl<M> UnwindSafe for SelectModel<M>where
    M: 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
§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