pub struct SelectModel<M>where
M: FromQueryResult,{ /* private fields */ }
Expand description
Defines a type to get a Model
Trait Implementationsยง
Sourceยงimpl<M> Debug for SelectModel<M>where
M: FromQueryResult + Debug,
impl<M> Debug for SelectModel<M>where
M: FromQueryResult + Debug,
Sourceยงimpl<M> SelectorTrait for SelectModel<M>where
M: FromQueryResult + Sized,
impl<M> SelectorTrait for SelectModel<M>where
M: FromQueryResult + Sized,
type Item = M
Sourceยงfn from_raw_query_result(res: QueryResult) -> Result<Self::Item, DbErr>
fn from_raw_query_result(res: QueryResult) -> Result<Self::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
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยง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