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>
Source§fn clone(&self) -> TenantState<R>
fn clone(&self) -> TenantState<R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<R> Freeze for TenantState<R>
impl<R> RefUnwindSafe for TenantState<R>where
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>
impl<R> UnwindSafe for TenantState<R>where
R: RefUnwindSafe,
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