pub struct TenantManager { /* private fields */ }Expand description
Manager for multiple tenants.
Implementations§
Source§impl TenantManager
impl TenantManager
Sourcepub fn register(&self, config: TenantConfig)
pub fn register(&self, config: TenantConfig)
Register a tenant.
Sourcepub fn get(&self, id: &TenantId) -> Option<TenantConfig>
pub fn get(&self, id: &TenantId) -> Option<TenantConfig>
Get a tenant config.
Sourcepub fn remove(&self, id: &TenantId) -> Option<TenantConfig>
pub fn remove(&self, id: &TenantId) -> Option<TenantConfig>
Remove a tenant.
Sourcepub fn update(&self, config: TenantConfig) -> bool
pub fn update(&self, config: TenantConfig) -> bool
Update a tenant config.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TenantManager
impl !RefUnwindSafe for TenantManager
impl Send for TenantManager
impl Sync for TenantManager
impl Unpin for TenantManager
impl UnwindSafe for TenantManager
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