Skip to main content

oparl_service_facade/
lib.rs

1// SPDX-FileCopyrightText: Politik im Blick developers
2// SPDX-FileCopyrightText: Wolfgang Silbermayr <wolfgang@silbermayr.at>
3//
4// SPDX-License-Identifier: AGPL-3.0-or-later OR EUPL-1.2
5
6#![deny(
7    warnings,
8    bad_style,
9    private_bounds,
10    private_interfaces,
11    dead_code,
12    improper_ctypes,
13    non_shorthand_field_patterns,
14    no_mangle_generic_items,
15    overflowing_literals,
16    path_statements,
17    patterns_in_fns_without_body,
18    unnameable_types,
19    unconditional_recursion,
20    unused,
21    unused_allocation,
22    unused_comparisons,
23    unused_parens,
24    while_true,
25    missing_debug_implementations,
26    missing_docs,
27    trivial_casts,
28    trivial_numeric_casts,
29    unused_extern_crates,
30    unused_import_braces,
31    unused_qualifications,
32    unused_results
33)]
34
35//! A crate providing all traits required for implementing a complete OParl 1.1 service.
36//!
37//! The idea is to implement this trait for handing out the information to a web service
38//! behind which the [`OParlService`] is operated.
39//!
40//! The web service needs to implement the endpoints according to the OParl 1.1 specification,
41//! and forward them to the instantiated [`OParlService`]. The [`OParlService`] implementation
42//! could e.g. be held by app data attached to the web app, a pattern seen frequently in Rust
43//! web server implementations such as `axum`.
44
45mod oparl_service;
46mod oparl_service_handle;
47mod pagination;
48mod service_error;
49mod service_ids;
50
51pub use oparl_service::OParlService;
52pub use oparl_service_handle::OParlServiceHandle;
53pub use pagination::Pagination;
54pub use service_error::ServiceError;
55pub use service_ids::ServiceIds;