pub struct TenantState<R: TenantRepository> {
pub tenant_repository: Arc<R>,
}Expand description
Tenant isolation state for middleware
Fields§
§tenant_repository: Arc<R>Trait Implementations§
Source§impl<R: Clone + TenantRepository> Clone for TenantState<R>
impl<R: Clone + TenantRepository> Clone for TenantState<R>
Auto Trait Implementations§
impl<R> Freeze for TenantState<R>
impl<R> RefUnwindSafe for TenantState<R>where
Arc<R>: RefUnwindSafe,
impl<R> Send for TenantState<R>
impl<R> Sync for TenantState<R>
impl<R> Unpin for TenantState<R>
impl<R> UnsafeUnpin for TenantState<R>where
Arc<R>: UnsafeUnpin,
impl<R> UnwindSafe for TenantState<R>where
Arc<R>: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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