pub trait TenantAuthAdmin<CreatedModel, ReadModel, SearchClauses, UpdateModel, Key> {
// Required methods
fn create(
&self,
tenant: &TenantId,
model: CreatedModel,
) -> impl Future<Output = Result<ReadModel, OperationOutcomeError>> + Send;
fn read(
&self,
tenant: &TenantId,
id: &Key,
) -> impl Future<Output = Result<Option<ReadModel>, OperationOutcomeError>> + Send;
fn update(
&self,
tenant: &TenantId,
model: UpdateModel,
) -> impl Future<Output = Result<ReadModel, OperationOutcomeError>> + Send;
fn delete(
&self,
tenant: &TenantId,
id: &Key,
) -> impl Future<Output = Result<(), OperationOutcomeError>> + Send;
fn search(
&self,
tenant: &TenantId,
clauses: &SearchClauses,
) -> impl Future<Output = Result<Vec<ReadModel>, OperationOutcomeError>> + Send;
}Required Methods§
fn create( &self, tenant: &TenantId, model: CreatedModel, ) -> impl Future<Output = Result<ReadModel, OperationOutcomeError>> + Send
fn read( &self, tenant: &TenantId, id: &Key, ) -> impl Future<Output = Result<Option<ReadModel>, OperationOutcomeError>> + Send
fn update( &self, tenant: &TenantId, model: UpdateModel, ) -> impl Future<Output = Result<ReadModel, OperationOutcomeError>> + Send
fn delete( &self, tenant: &TenantId, id: &Key, ) -> impl Future<Output = Result<(), OperationOutcomeError>> + Send
fn search( &self, tenant: &TenantId, clauses: &SearchClauses, ) -> impl Future<Output = Result<Vec<ReadModel>, OperationOutcomeError>> + Send
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.