1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! Synchronous client for the ChurchTools REST API.
//!
//! ```no_run
//! use churchtools_api::Client;
//! use churchtools_api::queries::GetEventsQuery;
//!
//! let client = Client::new("https://meinegemeinde.church.tools", Some("token".into()))?;
//! let query = GetEventsQuery {
//! from: Some("2026-11-01".parse().unwrap()),
//! to: Some("2026-11-30".parse().unwrap()),
//! ..Default::default()
//! };
//! for event in client.events().list_with(&query)? {
//! println!("{} {}", event.start_date, event.name);
//! }
//! # Ok::<(), churchtools_api::Error>(())
//! ```
//!
//! The code is generated from the API description of ChurchTools
//! [`API_VERSION`]. Other versions work as far as their API matches: missing
//! endpoints answer `404`, unknown fields end up in `extra`.
//!
//! The client is blocking. Inside an async runtime such as Tokio, run it in
//! `tokio::task::spawn_blocking`; calling it directly from async code panics.
//!
//! # Public dependencies
//!
//! The models use types of `chrono` (dates and timestamps), `serde`
//! (`Serialize`/`Deserialize`) and `serde_json` (`Value`, `extra` maps); those
//! crates are part of the public API, `chrono` is re-exported. The HTTP
//! library is not: requests take [`Method`], transport errors are wrapped in
//! [`TransportError`].
pub use chrono;
pub use ;
pub use DateOrDateTime;
pub use ;
pub use api as resources;
pub use ;