pub struct StubRepository { /* private fields */ }Implementations§
Trait Implementations§
Source§impl ICRUDRepository for StubRepository
impl ICRUDRepository for StubRepository
fn create<'life0, 'life1, 'async_trait>(
&'life0 self,
_item: &'life1 mut Row,
) -> Pin<Box<dyn Future<Output = Result<Row>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_item: &'life1 mut Row,
_by_where: Option<&'life2 dyn IWhere>,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_item: &'life1 Row,
_by_where: Option<&'life2 dyn IWhere>,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn read_single_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
_id: &'life1 dyn IdKey,
) -> Pin<Box<dyn Future<Output = Result<Option<Row>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn id_names(&self) -> Vec<String>
fn add_middleware(&self, _middleware: Arc<dyn CommandMiddleware>)
Source§impl IReadonlyRepository for StubRepository
impl IReadonlyRepository for StubRepository
fn to_crud(self: Arc<Self>) -> Option<Arc<dyn ICRUDRepository>>
fn read_single<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_query: Option<&'life1 dyn ReadInput>,
_parameters: Option<&'life2 [Parameter]>,
_options: Option<&'life3 ReadonlyRepositoryMappingOptions>,
) -> Pin<Box<dyn Future<Output = Result<Option<Row>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn read<'a>( &'a self, _query: Option<&'a dyn ReadInput>, _parameters: Option<&'a [Parameter]>, _options: Option<&'a ReadonlyRepositoryMappingOptions>, ) -> Pin<Box<dyn Stream<Item = Result<Row>> + Send + 'a>>
Source§impl IRepository for StubRepository
impl IRepository for StubRepository
fn entity_type(&self) -> TypeId
Auto Trait Implementations§
impl Freeze for StubRepository
impl RefUnwindSafe for StubRepository
impl Send for StubRepository
impl Sync for StubRepository
impl Unpin for StubRepository
impl UnsafeUnpin for StubRepository
impl UnwindSafe for StubRepository
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