pub struct Get<Conn, Table, C>where
Conn: Connection + Unpin + 'static,
Conn::Backend: HasSqlType<Table::SqlType>,
Table: Table + HasTable<Table = Table> + AsQuery,
Table::Query: QueryId + QueryFragment<Conn::Backend>,
C: Cache<Conn, Table>,{
pub id: C::Id,
}Expand description
Gets item by id
Fields§
§id: C::IdId of item to get
Trait Implementations§
Source§impl<Conn, Table, C> Clone for Get<Conn, Table, C>where
Conn: Connection + Unpin + 'static,
Conn::Backend: HasSqlType<Table::SqlType>,
Table: Table + HasTable<Table = Table> + AsQuery,
Table::Query: QueryId + QueryFragment<Conn::Backend>,
C: Cache<Conn, Table>,
C::Id: Clone,
impl<Conn, Table, C> Clone for Get<Conn, Table, C>where
Conn: Connection + Unpin + 'static,
Conn::Backend: HasSqlType<Table::SqlType>,
Table: Table + HasTable<Table = Table> + AsQuery,
Table::Query: QueryId + QueryFragment<Conn::Backend>,
C: Cache<Conn, Table>,
C::Id: Clone,
impl<Conn, Table, C> Copy for Get<Conn, Table, C>
Source§impl<Conn, Table, C> Handler<Get<Conn, Table, C>> for CacheDbActor<Conn, Table, C>where
Conn: Connection + Unpin + 'static,
Conn::Backend: HasSqlType<Table::SqlType>,
Table: Table + HasTable<Table = Table> + AsQuery + Unpin + 'static,
Table::Query: QueryId + QueryFragment<Conn::Backend>,
C: Cache<Conn, Table>,
impl<Conn, Table, C> Handler<Get<Conn, Table, C>> for CacheDbActor<Conn, Table, C>where
Conn: Connection + Unpin + 'static,
Conn::Backend: HasSqlType<Table::SqlType>,
Table: Table + HasTable<Table = Table> + AsQuery + Unpin + 'static,
Table::Query: QueryId + QueryFragment<Conn::Backend>,
C: Cache<Conn, Table>,
Auto Trait Implementations§
impl<Conn, Table, C> Freeze for Get<Conn, Table, C>
impl<Conn, Table, C> RefUnwindSafe for Get<Conn, Table, C>
impl<Conn, Table, C> Send for Get<Conn, Table, C>
impl<Conn, Table, C> Sync for Get<Conn, Table, C>
impl<Conn, Table, C> Unpin for Get<Conn, Table, C>
impl<Conn, Table, C> UnsafeUnpin for Get<Conn, Table, C>
impl<Conn, Table, C> UnwindSafe for Get<Conn, Table, C>
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self to an expression for Diesel’s query builder. Read more