pub trait TenantResolver:
Send
+ Sync
+ 'static {
type Tenant: HasTenantId + Send + Sync + Clone + 'static;
// Required method
fn resolve(
&self,
id: &TenantId,
) -> impl Future<Output = Result<Self::Tenant>> + Send;
}Expand description
Resolves a TenantId to an app-defined tenant type.
Uses RPITIT so it is not object-safe; the resolver must be a concrete type.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.