Skip to main content

Crate oparl_service_facade

Crate oparl_service_facade 

Source
Expand description

A crate providing all traits required for implementing a complete OParl 1.1 service.

The idea is to implement this trait for handing out the information to a web service behind which the OParlService is operated.

The web service needs to implement the endpoints according to the OParl 1.1 specification, and forward them to the instantiated OParlService. The OParlService implementation could e.g. be held by app data attached to the web app, a pattern seen frequently in Rust web server implementations such as axum.

Structs§

OParlServiceHandle
A thread-safe rw-locked handle holding an OParlService.
Pagination
The page request to be used when querying collections of data.
ServiceError
An error returned from service endpoints when something goes wrong

Traits§

OParlService
A trait that can be implemented to provide an OParl service through a web server.
ServiceIds
A trait defining the ids for all types to be used in URLs.