ProjectAuthAdmin

Trait ProjectAuthAdmin 

Source
pub trait ProjectAuthAdmin<CreatedModel, ReadModel, SearchClauses, UpdateModel, Key> {
    // Required methods
    fn create(
        &self,
        tenant: &TenantId,
        project: &ProjectId,
        model: CreatedModel,
    ) -> impl Future<Output = Result<ReadModel, OperationOutcomeError>> + Send;
    fn read(
        &self,
        tenant: &TenantId,
        project: &ProjectId,
        id: &Key,
    ) -> impl Future<Output = Result<Option<ReadModel>, OperationOutcomeError>> + Send;
    fn update(
        &self,
        tenant: &TenantId,
        project: &ProjectId,
        model: UpdateModel,
    ) -> impl Future<Output = Result<ReadModel, OperationOutcomeError>> + Send;
    fn delete(
        &self,
        tenant: &TenantId,
        project: &ProjectId,
        id: &Key,
    ) -> impl Future<Output = Result<(), OperationOutcomeError>> + Send;
    fn search(
        &self,
        tenant: &TenantId,
        project: &ProjectId,
        clauses: &SearchClauses,
    ) -> impl Future<Output = Result<Vec<ReadModel>, OperationOutcomeError>> + Send;
}

Required Methods§

Source

fn create( &self, tenant: &TenantId, project: &ProjectId, model: CreatedModel, ) -> impl Future<Output = Result<ReadModel, OperationOutcomeError>> + Send

Source

fn read( &self, tenant: &TenantId, project: &ProjectId, id: &Key, ) -> impl Future<Output = Result<Option<ReadModel>, OperationOutcomeError>> + Send

Source

fn update( &self, tenant: &TenantId, project: &ProjectId, model: UpdateModel, ) -> impl Future<Output = Result<ReadModel, OperationOutcomeError>> + Send

Source

fn delete( &self, tenant: &TenantId, project: &ProjectId, id: &Key, ) -> impl Future<Output = Result<(), OperationOutcomeError>> + Send

Source

fn search( &self, tenant: &TenantId, project: &ProjectId, 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.

Implementors§