pub struct GenericRepository<T> { /* private fields */ }Implementations§
Source§impl<T> GenericRepository<T>
impl<T> GenericRepository<T>
pub fn new(db: DatabaseRef) -> Self
Source§impl<T, U> GenericRepository<(T, U)>
impl<T, U> GenericRepository<(T, U)>
Trait Implementations§
Source§impl<T> Clone for GenericRepository<T>
impl<T> Clone for GenericRepository<T>
Source§impl<T> Crud<T> for GenericRepository<T>
impl<T> Crud<T> for GenericRepository<T>
fn insert_async<'life0, 'life1, 'async_trait>(
&'life0 self,
entity: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_async<'life0, 'life1, 'async_trait>(
&'life0 self,
entity: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_by_entity_async<'life0, 'life1, 'async_trait>(
&'life0 self,
entity: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_by_key_async<'life0, 'async_trait>(
&'life0 self,
key: SqlParam,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl<T> QueryExecutor<T> for GenericRepository<T>
impl<T> QueryExecutor<T> for GenericRepository<T>
impl<T> Repository<T> for GenericRepository<T>
Auto Trait Implementations§
impl<T> Freeze for GenericRepository<T>
impl<T> !RefUnwindSafe for GenericRepository<T>
impl<T> Send for GenericRepository<T>where
T: Send,
impl<T> Sync for GenericRepository<T>where
T: Sync,
impl<T> Unpin for GenericRepository<T>where
T: Unpin,
impl<T> !UnwindSafe for GenericRepository<T>
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