Skip to main content

Backend

Trait Backend 

Source
pub trait Backend:
    FHIRClient<Arc<ServerCTX<Self>>, OperationOutcomeError>
    + Sized
    + 'static {
    type Repo: Repository + Send + Sync + 'static;
    type Search: SearchEngine + Send + Sync + 'static;
    type Terminology: FHIRTerminology + Send + Sync + 'static;

    // Required method
    fn builtin_operations(&self) -> &Arc<[&'static OperationDefinition]> ⓘ;
}
Expand description

The server client and the stack it runs on: its repository, search engine and terminology. The client implements it, so a layer is generic over the one type that names them all, and ctx.client sends requests back through the whole pipeline.

Required Associated Types§

Source

type Repo: Repository + Send + Sync + 'static

Source

type Search: SearchEngine + Send + Sync + 'static

Source

type Terminology: FHIRTerminology + Send + Sync + 'static

Required Methods§

Source

fn builtin_operations(&self) -> &Arc<[&'static OperationDefinition]> ⓘ

The OperationDefinitions of the server’s built-in operations.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<Repo: Repository + Send + Sync + 'static, Search: SearchEngine + Send + Sync + 'static, Terminology: FHIRTerminology + Send + Sync + 'static> Backend for FHIRServerClient<Repo, Search, Terminology>

Source§

type Repo = Repo

Source§

type Search = Search

Source§

type Terminology = Terminology