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§
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 Methods§
Sourcefn invalidate_project(
&self,
_tenant: &TenantId,
_project: &ProjectId,
) -> impl Future<Output = ()> + Send
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".