Skip to main content

SearchParameterResolve

Trait SearchParameterResolve 

Source
pub trait SearchParameterResolve: Send + Sync {
    // Required methods
    fn by_resource_type(
        &self,
        tenant: &TenantId,
        project: &ProjectId,
        resource_type: &ResourceType,
    ) -> impl Future<Output = Result<Vec<ResolvedParameter>, OperationOutcomeError>> + Send;
    fn by_name(
        &self,
        tenant: &TenantId,
        project: &ProjectId,
        resource_type: Option<&ResourceType>,
        code: &str,
    ) -> impl Future<Output = Result<Option<ResolvedParameter>, OperationOutcomeError>> + Send;
    fn all(
        &self,
        tenant: &TenantId,
        project: &ProjectId,
    ) -> impl Future<Output = Result<Vec<ResolvedParameter>, OperationOutcomeError>> + Send;

    // Provided method
    fn invalidate_project(
        &self,
        _tenant: &TenantId,
        _project: &ProjectId,
    ) -> impl Future<Output = ()> + Send { ... }
}

Required Methods§

Source

fn by_resource_type( &self, tenant: &TenantId, project: &ProjectId, resource_type: &ResourceType, ) -> impl Future<Output = Result<Vec<ResolvedParameter>, OperationOutcomeError>> + Send

Source

fn by_name( &self, tenant: &TenantId, project: &ProjectId, resource_type: Option<&ResourceType>, code: &str, ) -> impl Future<Output = Result<Option<ResolvedParameter>, OperationOutcomeError>> + Send

Source

fn all( &self, tenant: &TenantId, project: &ProjectId, ) -> impl Future<Output = Result<Vec<ResolvedParameter>, OperationOutcomeError>> + Send

Provided Methods§

Source

fn invalidate_project( &self, _tenant: &TenantId, _project: &ProjectId, ) -> impl Future<Output = ()> + Send

Drops any cached copy of the project’s own parameters, so the next lookup reads its indexed SearchParameters again.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§