pub struct TenantScopedRepo<R: Repo> { /* private fields */ }Implementations§
Source§impl<R: Repo> TenantScopedRepo<R>
impl<R: Repo> TenantScopedRepo<R>
pub fn new(inner: R) -> Self
pub fn with_config(self, config: TenantRepoConfig) -> Self
pub fn with_policy_hook<F>(self, policy_hook: F) -> Self
pub fn inner(&self) -> &R
pub fn inner_mut(&mut self) -> &mut R
pub fn into_inner(self) -> R
pub fn insert_scoped( &mut self, table: &str, context: &QueryContext, data: Row, ) -> DataResult<StoredRow>
pub fn update_scoped( &mut self, table: &str, id: u64, context: &QueryContext, data: Row, ) -> DataResult<StoredRow>
pub fn delete_scoped( &mut self, table: &str, id: u64, context: &QueryContext, ) -> DataResult<()>
pub fn find_scoped( &self, table: &str, id: u64, context: &QueryContext, ) -> DataResult<Option<StoredRow>>
pub fn list_scoped( &self, table: &str, query: &Query, context: &QueryContext, ) -> DataResult<Vec<StoredRow>>
pub fn list_window_scoped( &self, table: &str, query: &Query, context: &QueryContext, ) -> DataResult<WindowPage>
Auto Trait Implementations§
impl<R> Freeze for TenantScopedRepo<R>where
R: Freeze,
impl<R> !RefUnwindSafe for TenantScopedRepo<R>
impl<R> Send for TenantScopedRepo<R>where
R: Send,
impl<R> Sync for TenantScopedRepo<R>where
R: Sync,
impl<R> Unpin for TenantScopedRepo<R>where
R: Unpin,
impl<R> UnsafeUnpin for TenantScopedRepo<R>where
R: UnsafeUnpin,
impl<R> !UnwindSafe for TenantScopedRepo<R>
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